NassauSky Posted September 3, 2024 Posted September 3, 2024 @Danp2 Is anyone else having problems when Chrome auto updated recently. My pc auto updated this morning and I'm now at: Version 128.0.6613.120 (Official Build) (64-bit) and that that version isn't available on https://googlechromelabs.github.io/chrome-for-testing/#beta but just 129.x beta and tried that with the following result where Chrome still doesn't open: -*** Started Func SetupChrome ! $ShowDebugConsole is true so setting $_WD_Debug = $_WD_DEBUG_Full _WD_Option ==> Success [0] : Parameters: Option=Driver Value=C:\Autoit\Scripts\PurchaseOrderFiller\Required\chromedriver.exe _WD_Option ==> Success [0] : Parameters: Option=Port Value=9515 _WD_Option ==> Success [0] : Parameters: Option=DriverParams Value=--verbose --log-path="C:\Autoit\Scripts\PurchaseOrderFiller\Required\chrome.log" _WD_Option ==> Success [0] : Parameters: Option=DriverDetect Value=False Setting $sDesiredCapabilities to: { "capabilities": { "alwaysMatch": { "unhandledPromptBehavior": "ignore", "goog:chromeOptions": { "w3c": true, "excludeSwitches": [ "enable-automation" ], "useAutomationExtension": false, "prefs": { "credentials_enable_service": false, "profile": { "password_manager_enabled": false } }, "args": [ "window-position=0,5","window-size=1080,1046" ] } } }} ======================================= _WD_Option ==> Success [0] : Parameters: Option=DriverDetect Value=False _WD_GetFreePort ==> Success [0 / 9515] : Parameters: MinPort=9515 MaxPort=Default _WD_IsLatestRelease ==> Success [0] : True _WD_Startup: OS: WIN_10 X64 19045 _WD_Startup: AutoIt: 3.3.16.1 _WD_Startup: Webdriver UDF: 1.3.1 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: C:\Autoit\Scripts\PurchaseOrderFiller\Required\chromedriver.exe (64 Bit) _WD_Startup: Params: --verbose --log-path="C:\Autoit\Scripts\PurchaseOrderFiller\Required\chrome.log" _WD_Startup: Port: 9515 _WD_Startup: Command: "C:\Autoit\Scripts\PurchaseOrderFiller\Required\chromedriver.exe" --verbose --log-path="C:\Autoit\Scripts\PurchaseOrderFiller\Required\chrome.log" _WD_Startup ==> Success [0] __WD_Post: URL=HTTP://127.0.0.1:9515/session; Data={ "capabilities": { "alwaysMatch": { "unhandledPromptBehavior": "ignore", "goog:chromeOptions": { "w3c": true, "excludeSwitches": [ "enable-automation" ], "useAutomationExtension": false, "prefs": { "credentials_enable_service": false, "profile": { "password_manager_enabled": false } }, "args": [ "window-position=0,5","window-size=1080,1046" ] } } }} __WD_Post ==> Send / Recv error [6] : HTTP status = 0 ResponseText=WinHTTP request timed out before Webdriver _WD_CreateSession ==> Webdriver Exception [10] You might advice me to downgrade my Chrome which I might do. So to make it automatic in the future is there any sample Autoit code that might be able to sense the issue and downgrade chrome automatically? 😕 Thanks!
Solution Danp2 Posted September 3, 2024 Solution Posted September 3, 2024 Hi @NassauSky, See this prior discussion -- Regards, Dan Latest Webdriver UDF Release Webdriver Wiki FAQs
NassauSky Posted September 4, 2024 Author Posted September 4, 2024 Thanks @Danp2 What's strange about that is I had the following in my code which I thought locked the port number _WD_Option('Driver', $chromedriverLocation) _WD_Option('Port', 9515) _WD_Option('DriverParams', '--verbose --log-path="' & $RequiredFolder & 'chrome.log"') _WD_Option('DriverDetect', False) ; To ignore another instance of Chrome After replacing it with: _WD_Option('DriverParams', '--port=9515 --verbose --log-path="' & @ScriptDir & '\chrome.log"') It worked. Now I have to make that modification to all my scripts 😕 Thanks again!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now