Selenium hangs when starting new remoteWebDriver session using Microsoft Edge web browser on Windows 10 VM -
we getting error when starting session of remote web driver microsoft edge on windows 10 vm. have selenium grid configured multiple nodes have various os/browser combinations. nodes exception of our new windows 10 node working expected. have configured windows 10 vm microsoft edge browser version=21.10586.0.0
, added microsoftwebdriver
on vm. path web driver on vm set system property -
-dwebdriver.edge.driver="c:\selenium\microsoftwebdriver.exe"
in selenium test instantiate selenium web driver configured microsoftwebdriver
on windows 10 vm. during initialization set capabilities remote driver , have log output set:
08:57:32.932 info - executing: [new session: capabilities [{platform=windows, javascriptenabled=true, browsername=microsoftedge, applicationname=win10_edge, version=21.10586.0.0}]]) 08:57:32.948 info - creating new session capabilities [{platform=windows, javascriptenabled=true, browsername=microsoftedge, applicationname=win10_edge, version=21.10586.0.0}]
the remote connection established, edge browser opened on vm , operational. @ point code hangs creating remote driver in selenium code - selenium-remote-driver-2.53.0.jar
eventually times out error:
java.util.concurrent.executionexception: org.openqa.selenium.webdriverexception: java.lang.reflect.invocationtargetexception build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58' system info: host: 'xxxx', ip: 'xxx.xx.xxx.xxx', os.name: 'windows 8', os.arch: 'x86', os.version: '6.2', java.version: '1.7.0_51' driver info: driver.version: unknown @ java.util.concurrent.futuretask.report(unknown source) @ java.util.concurrent.futuretask.get(unknown source) @ org.openqa.selenium.remote.server.defaultsession.execute(defaultsession.java:183) @ org.openqa.selenium.remote.server.defaultsession.<init>(defaultsession.java:119) @ org.openqa.selenium.remote.server.defaultsession.createsession(defaultsession.java:95) @ org.openqa.selenium.remote.server.defaultdriversessions.newsession(defaultdriversessions.java:124) @ org.openqa.selenium.remote.server.handler.newsession.handle(newsession.java:59) @ org.openqa.selenium.remote.server.handler.newsession.handle(newsession.java:1) @ org.openqa.selenium.remote.server.rest.resultconfig.handle(resultconfig.java:111) @ org.openqa.selenium.remote.server.jsonhttpcommandhandler.handlerequest(jsonhttpcommandhandler.java:79) @ org.openqa.selenium.remote.server.driverservlet.handlerequest(driverservlet.java:204) @ org.openqa.selenium.remote.server.driverservlet.dopost(driverservlet.java:166) @ javax.servlet.http.httpservlet.service(httpservlet.java:707) @ org.openqa.selenium.remote.server.driverservlet.service(driverservlet.java:132) @ javax.servlet.http.httpservlet.service(httpservlet.java:790) @ org.openqa.jetty.jetty.servlet.servletholder.handle(servletholder.java:428) @ org.openqa.jetty.jetty.servlet.servlethandler.dispatch(servlethandler.java:680) @ org.openqa.jetty.jetty.servlet.servlethandler.handle(servlethandler.java:571) @ org.openqa.jetty.http.httpcontext.handle(httpcontext.java:1526) @ org.openqa.jetty.http.httpcontext.handle(httpcontext.java:1479) @ org.openqa.jetty.http.httpserver.service(httpserver.java:920) @ org.openqa.jetty.http.httpconnection.service(httpconnection.java:820) @ org.openqa.jetty.http.httpconnection.handlenext(httpconnection.java:986) @ org.openqa.jetty.http.httpconnection.handle(httpconnection.java:837) @ org.openqa.jetty.http.socketlistener.handleconnection(socketlistener.java:243) @ org.openqa.jetty.util.threadedserver.handle(threadedserver.java:358) @ org.openqa.jetty.util.threadpool$poolthread.run(threadpool.java:537) caused by: org.openqa.selenium.webdriverexception: java.lang.reflect.invocationtargetexception build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58' system info: host: 'xxxx', ip: 'xxx.xx.xxx.xxx', os.name: 'windows 8', os.arch: 'x86', os.version: '6.2', java.version: '1.7.0_51' driver info: driver.version: unknown @ org.openqa.selenium.remote.server.defaultdriverprovider.callconstructor(defaultdriverprovider.java:113) @ org.openqa.selenium.remote.server.defaultdriverprovider.newinstance(defaultdriverprovider.java:97) @ org.openqa.selenium.remote.server.defaultdriverfactory.newinstance(defaultdriverfactory.java:60) @ org.openqa.selenium.remote.server.defaultsession$browsercreator.call(defaultsession.java:222) @ org.openqa.selenium.remote.server.defaultsession$browsercreator.call(defaultsession.java:1) @ java.util.concurrent.futuretask.run(unknown source) @ org.openqa.selenium.remote.server.defaultsession$1.run(defaultsession.java:176) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) caused by: java.lang.reflect.invocationtargetexception @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source) @ org.openqa.selenium.remote.server.defaultdriverprovider.callconstructor(defaultdriverprovider.java:103) ... 9 more caused by: org.openqa.selenium.timeoutexception: timeout (warning: server did not provide stacktrace information) command duration or timeout: 917.04 seconds build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58' system info: host: 'xxxx', ip: 'xxx.xx.xxx.xxx', os.name: 'windows 8', os.arch: 'x86', os.version: '6.2', java.version: '1.7.0_51' driver info: org.openqa.selenium.edge.edgedriver @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source) @ java.lang.reflect.constructor.newinstance(unknown source) @ org.openqa.selenium.remote.errorhandler.createthrowable(errorhandler.java:206) @ org.openqa.selenium.remote.errorhandler.throwifresponsefailed(errorhandler.java:158) @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:678) @ org.openqa.selenium.remote.remotewebdriver.startsession(remotewebdriver.java:249) @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:131) @ org.openqa.selenium.remote.remotewebdriver.<init>(remotewebdriver.java:144) @ org.openqa.selenium.edge.edgedriver.<init>(edgedriver.java:152) @ org.openqa.selenium.edge.edgedriver.<init>(edgedriver.java:120) ... 14 more 13:28:49.532 warn - exception: timeout (warning: server did not provide stacktrace information) command duration or timeout: 917.04 seconds
i using: selenium-server-standalone-2.53.0.jar, microsoft webdriver fall 2015 update microsoft site
i noticed system info above lists windows 8 - though windows 10 installed.
has else seen issue or have idea wrong?
during successful yet painful struggle set edge part of selenium grid getting similar exceptions. there @ least 2 possible problems here:
is selenium-standalone-server started in background (for example using task-scheduler) or foreground? (for example manually or startup program) edge driver must running in foreground, window can displayed on desktop. therefore node cannot started windows service nor windows task scheduler @ startup. best way automate starting of node configure auto-login , add batch script starting node user's startup programs described in my article.
are there other browsers enabled in same node edge? known cause problems. recommended start 2 separate nodes on same machine (on different ports of course) : 1 edge , second ie, ff , chrome. see this answer more info.
Comments
Post a Comment