RPAChallenge with AHK, COM, and JSWrapper.ahk

Post your working scripts, libraries and tools
burque505
Posts: 1371
Joined: 22 Jan 2017, 19:37

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

11 Jul 2020, 18:35

That is the version I use: 83.0.4103.39. But as you can see from the screenshot on the previous page, it reports as 83.0.4103.116. That is very odd. I am re-downloading to see if perhaps the file was corrupted somehow - although that seems quite unlikely. EDIT: Just tried, same result, reports as 83.0.4103.116. Downloaded straight from the link you provided. EDIT: Tried again with an earlier version of the driver (83.0.4103.14), and it still reports as 83.0.4103.116, which is of course the Chrome version, not the chromedriver version. That much makes sense.
malcev
Posts: 709
Joined: 12 Aug 2014, 12:37

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

12 Jul 2020, 07:02

I tested on 3 different Win10 PCs and code works for me.
Therefore I think it is bug of Your system.
You can try to disable gpu and/or change page load strategy like this:

Code: Select all

#noenv
#include AHKWebDriver.ahk

Run, chromedriver.exe --port=1234
options = {"capabilities": {"alwaysMatch": {"pageLoadStrategy":"eager", "goog:chromeOptions": {"args":["disable-gpu"]}}}}
wd := new WDSession("http://127.0.0.1:1234/", options)
if(wd.rc.isError){
    msgbox % "Error:" wd.rc.value.error " " wd.rc.value.message
    ExitApp
}
wd.url("https://autohotkey.com")
wd.debug()
; next force error
wd.url("ixbxm.com")
wd.debug()
wd.delete
Also if chromedriver works from python on Your PC, You can watch what options set python.
burque505
Posts: 1371
Joined: 22 Jan 2017, 19:37

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

12 Jul 2020, 08:00

@malcev, you are right, I have a bug on my Win7 system. All the scripts work on Win10 (although I get a strange error message about the Bluetooth adapter not being found). Sorry about the red herring. I will do any further testing of AHKWebdriver.ahk on my Win10 system.

Regards,
burque505

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 16 guests