Search found 8 matches

by mikea105
12 Jul 2019, 16:56
Forum: Tutorials
Topic: Using Selenium with AutoHotkey- Cross browser automation!
Replies: 145
Views: 88471

Re: Using Selenium with AutoHotkey- Cross browser automation!

I normally use an explicit wait. The syntax below seems to work fine with Autohotkey and Selenium. This line waits up to 30 seconds for the element to appear and be clickable. Hopefully it will work for you. myDynamicElement := (new WebDriverWait(driver, 30)).until(ExpectedConditions.elementToBeClic...
by mikea105
30 May 2019, 18:54
Forum: Ask For Help
Topic: Problem with string, index in loop
Replies: 2
Views: 541

Re: Problem with string, index in loop (SOLVED)

Oh, am I DUMB! I finally found the answer. I should have just done this: St := "pwb.findElementByName(""ItemDetailASTs[" . Item_Index . "].TypeID"" )" I DID try it earlier, but where I went wrong was not leaving spaces before and after the periods around "Item_Index." That caused an error, but leavi...
by mikea105
30 May 2019, 17:52
Forum: Ask For Help
Topic: Problem with string, index in loop
Replies: 2
Views: 541

Problem with string, index in loop

I’m using Selenium with Autohotkey to work with some web pages. I have some sort of problem with a string, and I can’t figure it out. This should be very simple, and I’m likely missing something very basic here, but I’m lost. Note that the page I’m working with uses a zero-based array. It’s just a l...
by mikea105
22 Mar 2019, 17:14
Forum: Ask For Help
Topic: Please Help! Autohotkey, Chrome and Selenium Topic is solved
Replies: 7
Views: 1637

Re: Please Help! Autohotkey, Chrome and Selenium Topic is solved

Just FYI, the first one doesn't work. It throws a "Member not found. Specifically: Attribute) error. driver.findElementByName("customerAddress.state").Attribute("selectedIndex") := 1 HOWEVER, this one driver.executeScript("document.getElementsByName( ""customerAddress.state"")[0].options[20].selecte...
by mikea105
22 Mar 2019, 09:55
Forum: Ask For Help
Topic: Please Help! Autohotkey, Chrome and Selenium Topic is solved
Replies: 7
Views: 1637

Re: Please Help! Autohotkey, Chrome and Selenium Topic is solved

I'm sorry, I think I'm not being clear about my problem. I have no problem dereferencing the variable. For example, this works just fine and returns the index: A_Value := driver.findElementByName("customerAddress.state").Attribute("selectedIndex") and this returns the value: A_Value := driver.findEl...
by mikea105
21 Mar 2019, 14:21
Forum: Ask For Help
Topic: Please Help! Autohotkey, Chrome and Selenium Topic is solved
Replies: 7
Views: 1637

Re: Please Help! Autohotkey, Chrome and Selenium Topic is solved

Thanks for your reply! Based on what you said, I tried this: driver.executeScript("document.getElementsByName( ""customerAddress.state"")[0].options[20].selected=true )") However, it throws an exception: Error: 0xA00A000D- Source: Selenium Description: UnknownError unknown error:Runtime.evaluate thr...
by mikea105
21 Mar 2019, 09:24
Forum: Ask For Help
Topic: Please Help! Autohotkey, Chrome and Selenium Topic is solved
Replies: 7
Views: 1637

Please Help! Autohotkey, Chrome and Selenium Topic is solved

I have an AHK script that automates working with a program that runs in a web browser. I’ve gotten it working with IE. I need to get it working with Chrome, which requires Selenium. I’ve figured out most of what I need, but I’m really stuck trying to handle writing to dropdowns. I can get the value ...
by mikea105
08 Mar 2019, 10:19
Forum: Ask For Help
Topic: Handling dropdowns with AHK and Selenium
Replies: 0
Views: 352

Handling dropdowns with AHK and Selenium

Does anyone out there have a way to use AHK with Selenium and read/write dropdowns? There are some nice functions that work in C and Java, but, after many hours spent trying, I can't find ANY way to do this in an AHK script. I'd like to be able to read/write by index and text, if possible. Thanks ve...

Go to advanced search