Help with Selenium + AHK

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Mike__
Posts: 11
Joined: 25 Jul 2018, 14:36

Help with Selenium + AHK

04 Aug 2018, 11:53

Hello,

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
Xtra
Posts: 2750
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 (v1)”

Who is online

Users browsing this forum: Google [Bot] and 342 guests