Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.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 Webdriver启动IE_Selenium - Fatal编程技术网

无法从selenium Webdriver启动IE

无法从selenium Webdriver启动IE,selenium,Selenium,当我试图从selenium代码启动IE时,我遇到了这个错误 Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 800700C1 ('%1 is not a valid Win32 application.') for URL

当我试图从selenium代码启动IE时,我遇到了这个错误

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 800700C1 ('%1 is not a valid Win32 application.') for URL 'http://localhost:4593/'
代码


%1不是有效的win32应用程序
使我认为您的exe有问题。可能是错误的版本还是错误的版本

看一看

它不需要手动下载和映射驱动程序,而是可以在运行时为您完成:

WebDriverManager.iedriver().setup();
WebDriver driver = new InternetExplorerDriver();

你可以做更多的选择。请查看他们的文档。

%1无效的win32应用程序
使我认为您的exe有问题。可能是错误的版本还是错误的版本

看一看

它不需要手动下载和映射驱动程序,而是可以在运行时为您完成:

WebDriverManager.iedriver().setup();
WebDriver driver = new InternetExplorerDriver();
你可以做更多的选择。看看他们的文件