Page 1 of 1

Help with Selenium + AHK

Posted: 04 Aug 2018, 11:53
by Mike__

1-How I can prevent AHK / Selenium to bug / crash during the below that fail to find: driver.FindElementByXPath("//*[@id=""sku-1-175""]").click()
2-How I cann add an if statement like if the value exist in the text box or drop down box. IE: Let say I did the following: driver.FindElementByXPath("//div[@data-widget-cid=""widget-15""]/select").SendKeys("EXEMPLE"). How I can verify that the word Exemple is really in the textbox / dropdown list.

I have to put some sleep between codes because sometime page load and it look like some selection/sendkeys can bug or delays. Is there a way to prevent this or only inserting some sleep should prevent this?

Re: Help with Selenium + AHK

Posted: 04 Aug 2018, 12:53
by Xtra
Take a look at using: Try