← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #209152]: To find a image which is left of a image

 

Question #209152 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/209152

    Status: Answered => Open

Omkkumar is still having a problem:
Hi Raiman,
Thanks for ur reply and sorry that i should have been more clear in my question 
 my actual code is 


screenObject=screen(0)
try:
     x=screenObject.Find("imgA").left(50)
   
except:
     exit(0)
setFindFailedResponse(SKIP)
if (x.find("img B"))
   click(x.find("img B"))
elif (x.find("img C")
    click((x.find("img C"))

I have two question here
  1.x=screenObject.Find("imgA").left(50) works but just x=Find("imgA").left(50) throws a error nonetype object has no attribute left
 2.if (x.find("img B")) ----throws a error "FindFailed:could not find "imgb"" eventhough i have setFindFailedResponse(SKIP)before the if condition

please suggest  me a solution

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.