What version of chromedriver do You use?
This one?
https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_win32.zip
RPAChallenge with AHK, COM, and JSWrapper.ahk
Re: RPAChallenge with AHK, COM, and JSWrapper.ahk
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.
Re: RPAChallenge with AHK, COM, and JSWrapper.ahk
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:
Also if chromedriver works from python on Your PC, You can watch what options set python.
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
Re: RPAChallenge with AHK, COM, and JSWrapper.ahk
@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
Regards,
burque505
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 152 guests