Public bug reported:

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.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to