Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium Java-无法在Microsoft Edge版本18中加载URL_Java_Selenium_Microsoft Edge_Selenium Edgedriver - Fatal编程技术网

Selenium Java-无法在Microsoft Edge版本18中加载URL

Selenium Java-无法在Microsoft Edge版本18中加载URL,java,selenium,microsoft-edge,selenium-edgedriver,Java,Selenium,Microsoft Edge,Selenium Edgedriver,我的边缘版本:18.18362 操作系统内部版本:18.18362 使用命令DISM.exe/Online/Add Capability/CapabilityName:Microsoft.WebDriver~~~~~0.0.1.0 用于初始化浏览器的Selenium Java代码: System.setProperty("webdriver.edge.driver", "C:\\Windows\\System32\\MicrosoftWebDriver.exe"); driver = new E

我的边缘版本:18.18362 操作系统内部版本:18.18362

使用命令
DISM.exe/Online/Add Capability/CapabilityName:Microsoft.WebDriver~~~~~0.0.1.0

用于初始化浏览器的Selenium Java代码:

System.setProperty("webdriver.edge.driver", "C:\\Windows\\System32\\MicrosoftWebDriver.exe");
driver = new EdgeDriver();
浏览器正在打开,但url未加载

使用DISM.exe安装后,MicrosoftWebDriver.exe存在4个路径。我应该在初始化时使用这其中的哪一个

  • C:\Windows\WinSxS\wow64\U microsoft-webdriver-server-components\U 31bf3856ad364e35\U 10.0.18362.1\U none\U cf827c8a6da82156
  • C:\Windows\SysWOW64
  • C:\Windows\WinSxS\amd64\U microsoft-webdriver-server-components\U 31bf3856ad364e35\U 10.0.18362.1\U none\U c52dd23839475f5b
  • C:\Windows\System32
  • 我还启用了windows中的开发人员模式


    仍然没有在EDGE中加载URL。有人能帮忙吗?

    你有错误吗?用完整的错误堆栈跟踪更新问题。没有抛出错误。浏览器正在打开,但URL未加载发布导航到URL的代码。请检查导入Java Selenium软件包版本,您使用的是哪个版本?