如何在Selenium WebDriver的64位计算机上调用32位Internet Explorer,以便使sendKeys()
函数正常运行?我在pom.xml
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>1.5.0</version>
</dependency>
用于启动IE浏览器的代码如下:
public WebDriver launchIEBrowser() {
syso("IE Browser");
InternetExplorerDriverManager.getInstance().setup();
driver = new InternetExplorerDriver();
syso("IE browser Launched successfully");
return driver;
}