所以我已经阅读了关于将chromedriver添加到我的路径中的所有文档,并遵循了所有这些文档.我在使用selenium2,maven,eclipse以及所有最新驱动程序的Mac上:
Error:
The path to the chromedriver executable must be set by the webdriver.chrome.driver system property;
Run Code Online (Sandbox Code Playgroud)
我把chromedriver放在我的Applications文件夹中,我的路径如下:
echo $PATH
/Users/tcerrato/selenium/BS_Sel_Project/auto_helper/test_scripts:/usr/local/apache-maven-2.2.1//bin:/Users/oracle/oracle/product/10.2.0/db_1/bin:/opt/local/bin:/opt/local/sbin:/Applications:
Run Code Online (Sandbox Code Playgroud)
我错过了什么?我根本无法使用Chrome驱动程序.任何帮助都会很棒我现在正在尝试随机的东西.
这是我关于硒的pom部分:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium</artifactId>
<version>2.0rc2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>2.6.0</version>
</dependency>
Run Code Online (Sandbox Code Playgroud) 我有一个令人沮丧的时间试图找到有关PHPUnit的Selenium 2的任何信息,除了源代码和我可以"浏览"以"弄明白"的测试.每个人的最爱似乎都是
https://github.com/sebastianbergmann/phpunit-selenium/blob/master/Tests/Selenium2TestCaseTest.php
...但我肯定不需要挖掘数百行来源来获得简单问题的答案?我在哪里可以找到初学者指南,基本文档或任何其他内容?