← Back to team overview

sikuli-driver team mailing list archive

[Bug 1857230] Re: Exist not finding image even though it exists

 

sounds strange.

can you send me a screenshot AND the offending image file.
sikulix---at---outlook---dot---com

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

Title:
  Exist not finding image even though it exists

Status in Sikuli:
  New

Bug description:
  In the script below the routine looks for the text "Auction Complete"
  and if it exists does something. The problem is that the image exists,
  and is shown if you do a pattern matching on the image but when you
  run the script the image is not detected even though it is there.

  Script

  outcome = bid_test()
  print("The outcome is...",str(outcome))


  def bid_test():
      Debug.user("In make_bid")
      print("In Make Bid")
   #
   # if ending soon is not present somethin went wrong, either we are too early
   # or someone bought the item

      if exists (Pattern("1577013855062.png").similar(0.79)) :
          print("Auction Complete")
          return(1)

      else:
          print(" Auction is not ending yet need to rerty")
          return (2)

  This is sikuli 2.0.1 on Win10 Pro 64 Bit Version 1903. I can provide a
  screen shot which has the image the script should detect.

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


References