我的问题是驱动程序体系结构,并通过下载和使用32位解决了该问题。
要切换到32位,这是您要做的
- 从http://selenium-release.storage.googleapis.com/index.html下载32位驱动程序服务
InterExplorerWeDriver
使用InternetExplorerDriverService
具有32位驱动程序服务路径的类实例化您的类 。
InternetExplorerDriver ieDiver = new InternetExplorerDriver(“Path to the 32bit Explorer driver”);
或者, 如果使用构建器:
System.setProperty(“webdriver.ie.driver”,“C:\drivers\IEDriverServer.exe”);DesiredCapabilities ieCapabilities=DesiredCapabilities.internetExplorer();ieCapabilities.setCapability(InternetExplorerDriver .INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);ieCapabilities.setCapability("requireWindowFocus", true);File ie_temp=newFile(“C:\Selenium\IEDrivertemp”);InternetExplorerDriverService.Builder ies=newInternetExplorerDriverService.Builder();ies.withExtractPath(ie_temp);InternetExplorerDriverService service=ies.build();WebDriver driver=newInternetExplorerDriver(service,ieCapabilities))
帮助我解决的话题
http://forumsqa.com/question/typing-too-slow-in-text-fields-while-replaying-
tests/
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)