我可以手动使用playOnlinux在ubuntu上运行IE。 您认为如何使用Selenium WebDriver运行它?
[TestNG] Running:
/tmp/testng-eclipse--935095095/testng-customsuite.xml
FAILED CONFIGURATION: @BeforeTest setUp
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver system property; for more information, see http://code.google.com/p/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html
at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)
at org.openqa.selenium.ie.InternetExplorerDriverService.access$100(InternetExplorerDriverService.java:38)
at org.openqa.selenium.ie.InternetExplorerDriverService$Builder.build(InternetExplorerDriverService.java:247)
at org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:251)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:172)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:146)
at com.example.fw.ApplicationManager.<init>(ApplicationManager.java:70)
at
我应该准确安装哪些库?
感谢
答案 0 :(得分:1)
我很确定这不起作用。
相反,在真正的Windows机器上自动化IE,或使用独立的selenium服务器:您自己的,或BrowserStack
或Saucelabs
。