驱动程序可执行文件不存在:c:\ demo \ drivers \ edgedriver-windows-64bit

时间:2016-09-06 13:07:32

标签: selenium-webdriver webdriver

环境:Win 10,Edge 25.10586.0.0

我正在使用WebDriver Extensions并尝试与Edge和其他人进行跨浏览器测试。所有WebDriver可执行文件都在C:\demo\drivers下,包括edgedriver-windows-64bitchromedriver-windows-32bit。无论何时我clean and build,然后测试,Netbeans总是说:

  

驱动程序可执行文件不存在:@Edge C:\ demo \ drivers \ edgedriver-windows-64bit

     

java.lang.IllegalStateException       在com.google.common.base.Preconditions.checkState(Preconditions.java:199)       在org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:121)       在org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:116)       在org.openqa.selenium.edge.EdgeDriverService.access $ 000(EdgeDriverService.java:33)       在org.openqa.selenium.edge.EdgeDriverService $ Builder.findDefaultExecutable(EdgeDriverService.java:63)       在org.openqa.selenium.remote.service.DriverService $ Builder.build(DriverService.java:296)       在org.openqa.selenium.edge.EdgeDriverService.createDefaultService(EdgeDriverService.java:55)       在org.openqa.selenium.edge.EdgeDriver。(EdgeDriver.java:120)       在com.github.webdriverextensions.junitrunner.WebDriverRunner $ BrowserConfiguration.createDriver(WebDriverRunner.java:488)       在com.github.webdriverextensions.junitrunner.WebDriverRunner $ BrowserConfiguration.access $ 400(WebDriverRunner.java:372)       在com.github.webdriverextensions.junitrunner.WebDriverRunner.runChild(WebDriverRunner.java:200)       在com.github.webdriverextensions.junitrunner.WebDriverRunner.runChild(WebDriverRunner.java:57)       在org.junit.runners.ParentRunner $ 3.run(ParentRunner.java:290)       在org.junit.runners.ParentRunner $ 1.schedule(ParentRunner.java:71)       在org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)       在org.junit.runners.ParentRunner.access $ 000(ParentRunner.java:58)       在org.junit.runners.ParentRunner $ 2.evaluate(ParentRunner.java:268)       在org.junit.runners.ParentRunner.run(ParentRunner.java:363)       在org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)       在org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)       在org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)       at java.lang.reflect.Method.invoke(Method.java:498)       在org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)       在org.apache.maven.surefire.booter.ProviderFactory $ ProviderProxy.invoke(ProviderFactory.java:110)       在org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)       在org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)       在org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

pom中的

<groupId>com.github.webdriverextensions</groupId>
            <artifactId>webdriverextensions-maven-plugin</artifactId>
            <version>3.0.2</version>
            <executions>
                <execution>
                    <goals>
                        <goal>install-drivers</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <drivers>
                    <driver>
                        <name>chromedriver</name>
                        <version>2.22</version>
                    </driver>
                    <driver>
                        <name>edgedriver</name>
                        <platform>windows</platform>
                        <bit>64</bit>
                        <version>3.14366</version>
                    </driver>
                    <driver>
                        <name>internetexplorerdriver</name>
                        <platform>windows</platform>
                        <bit>64</bit>
                        <version>2.53</version>
                    </driver>                        
                </drivers>
            </configuration>
        </plugin>
    </plugins>

0 个答案:

没有答案