Jump to content

Recommended Posts

Posted

Hello,

I am using AutoIt to automate my Electron application. Everything worked well with an older version of Electron and Chromedriver. However, since I upgraded to the new Electron version (v40.0.0, available here: https://github.com/electron/electron/releases/tag/v40.0.0), I can no longer use Chromedriver to control the application. Nothing works anymore.

Here is an example of the code I am using to launch the application:

_WD_Option('Driver', $waytochromedriver)
_WD_Option('Port', 9515)
_WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"')
_WD_CapabilitiesStartup()
_WD_CapabilitiesAdd('alwaysMatch', 'chrome')
_WD_CapabilitiesAdd('excludeSwitches', 'enable-automation')
_WD_CapabilitiesAdd('w3c', True)
_WD_CapabilitiesAdd('useAutomationExtension', False)
_WD_CapabilitiesAdd('binary','ELECTRON.exe')
$sDesiredCapabilities = _WD_CapabilitiesGet()

; Launching the WebDriver console
_WD_Startup()

; Requesting the creation of a new session from the WebDriver
$sSession = _WD_CreateSession($sDesiredCapabilities)

; Waiting 50 seconds for the ELECTRON window to appear
WinWait("ELECTRON", "", 50)

Do you have any advice or feedback to make Chromedriver work with Electron v40?
Is there a specific configuration needed, or a particular version of Chromedriver required?

Thank you in advance for your help!

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
×
×
  • Create New...