sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02952
[Question #158940]: To fix an error
New question #158940 on Sikuli:
https://answers.launchpad.net/sikuli/+question/158940
Hi all .have a script that open a set of PDF's one by one in a loop and looks for set of images (that are again traversed in a loop one after another..inner loop) and when a match is found the text to the right of match is extracted..Im having ann error.Pls help me.
Script:
import os
def close():
switchApp("taskmgr.exe")
click( )
click( )
click( )
App.open("taskmgr.exe")
click( )
type("CC:\\Users\\268263\\Desktop\\download files_life insurance\\pdf\\")
click( )
click( )
App.close("taskmgr.exe")
u = list(findAll(pdficon )) **PDF where an image is looked"
for u1 in u:
doubleClick(u1)
addImagePath("CC:\\Users\\268263\\Desktop\\download files_life insurance\\images\\")
imgPath=list(getImagePath())
for v1 in imgPath:
if find(v1): **v1 is image searched in u1 PDF **
m=find(v1).right().text()
else:
popup("Not found")
close()
Error:
org.sikuli.script.FindFailed: FindFailed: can not find C:\Users\268263\Desktop\download files_life insurance\images\ Line 15, in file C:\Users\268263\AppData\Local\Temp\sikuli-tmp6067810858923825859.py
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.