-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
🐛 Bug Report
I am trying to automate an electron app using selenium webdriver but I am facing the below mentioned issue-
org.openqa.selenium.WebDriverException: unknown error: cannot connect to chrome at localhost:5558
from session not created: This version of ChromeDriver only supports Chrome version 84
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'LAPTOP-1UNI7991', ip: '192.168.0.139', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x011E87E3+2852835]
Ordinal0 [0x010D5BB1+1727409]
Ordinal0 [0x00FAE4B9+517305]
Ordinal0 [0x00F40BA0+68512]
Ordinal0 [0x00F3DC37+56375]
Ordinal0 [0x00F3BB0A+47882]
Ordinal0 [0x00F5D9F7+186871]
Ordinal0 [0x00F5D7FD+186365]
Ordinal0 [0x00F5B70B+177931]
Ordinal0 [0x00F42584+75140]
Ordinal0 [0x00F43650+79440]
Ordinal0 [0x00F435E9+79337]
Ordinal0 [0x010EAD5C+1813852]
GetHandleVerifier [0x0130C616+1075574]
GetHandleVerifier [0x0130C367+1074887]
GetHandleVerifier [0x01317497+1120247]
GetHandleVerifier [0x0130CC16+1077110]
Ordinal0 [0x010E3206+1782278]
Ordinal0 [0x010EC3BB+1819579]
Ordinal0 [0x010EC523+1819939]
Ordinal0 [0x01102B45+1911621]
BaseThreadInitThunk [0x75A76359+25]
RtlGetAppContainerNamedObjectPath [0x77747C24+228]
RtlGetAppContainerNamedObjectPath [0x77747BF4+180]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.findFirst(Unknown Source)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:147)
at BasicCommands.AutomateElectronApp.setup(AutomateElectronApp.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:521)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:140)
at org.testng.TestRunner.beforeRun(TestRunner.java:645)
at org.testng.TestRunner.run(TestRunner.java:613)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1200)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1125)
at org.testng.TestNG.run(TestNG.java:1033)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
To Reproduce
Tell us the detailed steps to reproduce it:
- Open electron app(Postman or any other eectron app) using cmd by using the command ElectronApp.exe --remote-debugging-port=9222
- Execute attached testng program in eclipse IDE.
Expected behavior
What do you expected to happen? How should have it worked?
The action described by the selenium program should be executed inside the electron app
Environment
- OS: Windows 10 64 bit Home edition
- Browser: Chrome
- Browser version: 84.0.4147.105 (Official Build) (64-bit)
- Java version- 1.8.231
- Selenium version-3.141.59
- Electron app name- Postman.exe/ Electron API Demo.exe or any other electron app.
##Screenshots and selenium program
Attachment.zip
##Other Links-
https://www.youtube.com/watch?v=GZerlwwR_14&t=787s
https://applitools.com/blog/automating-electron-applications-using-selenium/
https://github.com/electron/electron-api-demos/releases