Jump to content

Scripts stops clicking and filling inputs using edge browser


MRAJ
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...