无法从selenium Webdriver启动IE
当我试图从selenium代码启动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
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();
你可以做更多的选择。看看他们的文件