New question #250374 on Sikuli: https://answers.launchpad.net/sikuli/+question/250374
I have a webpage with a button that darkens in color when I hover over it (in order to click it) My sikuli script is able to locate the button fine and highlight even highlights the correct button, however click fails Thinking that click was failing due to color change, I explicitly grabbed the location (coordinates) from the match and passed it to click but click still fails I have tried to put in wait(), set ClickDelay, used hover before clicking: nothing works. Does click() fail if the underlying image changes on hover even if I passed it a location to click at? Here is what my code looks like: Settings.setShowActions(True) Settings.ActionLogs = True Settings.InfoLogs = True Settings.DebugLogs = True SCR1 = Screen(1) p1 = Pattern("1402973791825.png") p2 = Pattern("1402972955014.png") goOn = True while goOn: try: x1 = SCR1.find(p1.exact()) print x1 #hover(x1) goOn = False except FindFailed: x2 = SCR1.find(p2.exact()) x2l = x2.getTarget() print x2l x2h = x2.hover() print x2h x2h = x2.hover() print x2h x2.highlight(5) # icon on hover becomes darker #sleep(100) x2c = x2.doubleClick() print x2c x2.highlight(5) x2.hover(p2) wait(0.5) Settings.ClickDelay = 0.3 x2c = x2.click(p2) print x2c goOn = False x2c = x2.mouseDown(Button.LEFT) print x2c x2c = x2.mouseUp(Button.LEFT) print x2c -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ 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