Issues with edge webdriver

扶醉桌前 提交于 2019-12-12 03:34:53

问题


I am trying to execute automated test-cases on Microsoft Edge browser. While executing a test-case, Edge get launched, page get loaded but then it fails to execute javaScript (using IJavaScriptExecutor) and throw below exception:

-> error: unknown error (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 31 milliseconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'DESKTOP-VJGM30D', ip: '172.20.13.56', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_60'
Driver info: org.openqa.selenium.edge.EdgeDriver
Capabilities [{acceptSslCerts=true, browserVersion=20.10240.16384.0, platformVersion=10, browserName=MicrosoftEdge, takesScreenshot=true, pageLoadStrategy=normal, takesElementScreenshot=true, platformName=windows, platform=ANY}]

However I discovered a workaround to execute JavaScript. Whenever you open a url in edge browser (through your automation-script), just open its developer tools (by pressing F12 key). It will then start executing JavaScript on edge browser. Have anyone faced similar issue and if yes what did you do to resolve that?

Second issue that I faced with edge browser is that I am not able to run test-cases in parallel on edge browser. I opened two instances of visual studio and run one test-case from each instance. I realized that both the instances of edge-webdriver were pointing to same edge-browser-instance. Please let me know if any of you faced this issue. If yes, then how could you run test-cases in parallel on same machine?

Third issue that I faced is that we can't run test-cases from a process that is running with Admin privileges. Its very strange that test-cases run fine when running without Admin privileges. Any input in that regard?

Please help. Also could you please suggest most stable version of edge-webdriver?

Kind Regards Aseem


回答1:


I believe your browser version doesn't match with MS web driver. I had a similar issue. My browser version was 25.10586. Downloading Edge Windows/Microsoft Edge build 10586 from Microsoft WebDriver Fall 2015 Update fixed my issue.

Please also check Another stackoverflow Thread. It is suggesting that you should also check Capablities if you are on Windows 10.



来源:https://stackoverflow.com/questions/36444431/issues-with-edge-webdriver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!