Help with Selenium + AHK

Get help with using AutoHotkey and its commands and hotkeys
Posts: 11
Joined: 25 Jul 2018, 14:36

Help with Selenium + AHK

04 Aug 2018, 11:53


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?
User avatar
Posts: 1370
Joined: 02 Oct 2015, 12:15

Re: Help with Selenium + AHK

04 Aug 2018, 12:53

Take a look at using: Try

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], dathan_neal, samz43701, teadrinker and 172 guests