MRAJ Posted November 7, 2023 Share Posted November 7, 2023 I am using edge browser webdriver UDF. All Scripts were working fine and no issues, but past some days clicking and filling the inputs is not working. Not sure if its edge browser changes that effecting, edge browser version is 118. Website is opening in browser but there is no action happening. All scripts using edge browser giving the same issue but working very fine earlier. Please suggest any changes in browser will effect and need to change in script. #include "wd_core.au3" #include "wd_capabilities.au3" Local $sSession, $sElement,$sCapabilities,$bHeadless Local $sCapabilities = SetupEdge($bHeadless) _WD_Startup() $sSession = _WD_CreateSession($sCapabilities) _WD_Navigate($sSession,"$URL") _WD_LoadWait($sSession) $sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//button[@type='submit']") _WD_ElementAction($sSession,$sElement,'click') _WD_DeleteSession($sSession) _WD_Shutdown() Func SetupEdge($bHeadless) _WD_Option('Driver', 'msedgedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--verbose') ;~ Local $sCapabilities = '{"capabilities": {"alwaysMatch": {"ms:edgeOptions": {"excludeSwitches": [ "enable-automation"]}}}}' _WD_CapabilitiesStartup() _WD_CapabilitiesAdd('alwaysMatch', 'msedge') _WD_CapabilitiesAdd('excludeSwitches', 'enable-automation') If $bHeadless Then _WD_CapabilitiesAdd('args', '--headless') _WD_CapabilitiesDump(@ScriptLineNumber) ; dump current Capabilities setting to console - only for testing in this demo Local $sCapabilities = _WD_CapabilitiesGet() Return $sCapabilities EndFunc ;==>SetupEdge Below are the details _WD_Startup: OS: WIN_2016 X64 17763 _WD_Startup: AutoIt: 3.3.14.5 _WD_Startup: Webdriver UDF: 1.2.0 (Up to date) _WD_Startup: WinHTTP: 1.6.4.2 _WD_Startup: Driver: msedgedriver.exe (32 Bit) _WD_Startup: Params: --verbose _WD_Startup: Port: 9515 _WD_Startup: Command: "msedgedriver.exe" --verbose _WD_Startup ==> Success [0] Link to comment Share on other sites More sharing options...
Danp2 Posted November 7, 2023 Share Posted November 7, 2023 You should double check that the browser and webdriver versions match. This information is shown in the console during the session creation process if you run with $_WD_DEBUG_Full. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
MRAJ Posted November 7, 2023 Author Share Posted November 7, 2023 Thanks its working now. There was mismatch between browser and webdriver version. Link to comment Share on other sites More sharing options...
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