← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #245849]: exists() but cannot click()

 

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

Ray Bobak posted a new comment:
While logfile I appended earlier was from a launch of the sikuli script
after a failure, I have seen this failure before when started from the
IDE as first operation.  That is why I added the screen capture code to
that snippet.  So, to respond to the first statement, it happened when
script was first run.  I should point out that the script had been
running for 2-3 hours before it failed.  I have seen the exists() but
not able to click() in a number of places in the code, so it is not
limited to that section.

Agreed, sometime after the first invocation  of that code or similarly
failing other code something goes wrong.

When I tried using the click() after an exists() that worked, I did not
get the behavior that you expected.  The object that was in the exists
was not clicked, I put off looking at it to find a simpler case.  Based
on brief other experiment, I expect it would fail also.

There has to be more than a mouse blocking issue because the second
wait() and click() should have failed with not found since that popup
message is dependent on clicking the install button which never
happened.

        mainWin.wait(Pattern("1392777180952.png").similar(0.90),30) # without above click, this wait should fail it didn't
        mainWin.click(Pattern("1392777180952.png").similar(0.90))

While the print statements are operating, it appears that the wait and click statements are not processing.  The wait() should have failed with not found, and the click() should have also failed with not found.  The log contains a click()  that never should have happened.
[log] CLICK on L(1462,870)@S(0)[0,0 5760x1080]

The code does not change the default behavior for the
FindFailedResponse, I expect exceptions to be thrown in every case.

I will run the script from command line and see if similar failure
occurs.  Will add note with additional success/failure information.  I
will also try writing a simpler testcase to try to recreate.

Having stumbled on your webpage, I would tell you to enjoy your vacation
and not worry about this.  It can wait till April or later, please do
enjoy yourself.

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