← Back to team overview

sikuli-driver team mailing list archive

[Bug 1295453] Re: exists() but cannot click()

 

Surely not a bug.

** Changed in: sikuli
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/sikuli/+question/245849

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1295453

Title:
  exists() but cannot click()

Status in Sikuli:
  Invalid

Bug description:
  I have a piece of code that failed and I have no idea of the mechanism
  of the failure.  here is a snippet of code that fails

          while exists("1395354659252.png",60):
              click("1395354659252.png")
              wait("1395354848132.png",30)
              click("1395354848132.png")


  [error] script [ pass4 ] stopped with error in line 1716
  [error] FindFailed ( can not find 1395354659252.png on the screen. )
  [error] --- Traceback --- error source first line: module ( function ) statement 1397: main ( processTourney ) click("1395354659252.png")
  [error] --- Traceback --- end --------------

  line 1397 is the click on the second line.  A preview of the image
  shows no matches on screen at current similarity level.  How can the
  while exists() pass and the click() fail?

  I am running SikuliX 1.0.1 on windows 7.0 64 bit 
  +++ running this Java
  java version "1.7.0_51"
  Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
  Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
  +++ trying to start Sikuli IDE
  +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
  C:\sikuli\sikuli-ide.jar

  I hate to put ano if exists() inside the while exists() and wonder if
  even that would fail.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1295453/+subscriptions


References