Итак, я прочитал все документы по добавлению chromedriver к моему пути и следовал всем им. Я на Mac с selenium2, maven, eclipse и всеми последними драйверами:
Error:
The path to the chromedriver executable must be set by the webdriver.chrome.driver system property;
Я помещаю chromedriver в папку «Программы», и мой путь выглядит следующим образом:
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:
Чего мне не хватает? Я не могу работать с драйвером Chrome вообще. Любая помощь была бы отличной, я сейчас пробую что-то случайное.
Вот мой раздел о селене:
<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>