Caillou Posted February 17 Posted February 17 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!
Nine Posted February 17 Posted February 17 Try with : _WD_Option('DriverParams', '--port=9515 --verbose --log-path="' & @ScriptDir & '\chrome.log"') If that doesn't work show Scite console. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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