selenium 2 chrome driver

0 votes

I am on a Mac with selenium2, maven, eclipse, and all the latest drivers:

Error:

The path to the chromedriver executable must be set by the webdriver.chrome.driver system property; I put chromedriver in my Applications folder and my path looks like:

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:

 

I cannot run with chrome driver at all. Please help in this matter. Below is my pom section on selenium:

<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>
Aug 13, 2018 in Selenium by Martin
• 4,220 points
66 views

1 answer to this question.

0 votes

Try this

System.setProperty("webdriver.chrome.driver", "C:\\pathto\\my\\chromedriver.exe");

WebDriver driver = new ChromeDriver();

driver.get("http://www.google.com");

answered Aug 13, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer

Latest Version of Chrome Driver for Selenium Webdriver

The driver versions mentioned on the site ...READ MORE

answered Apr 11, 2018 in Selenium by DareDev
• 6,810 points
431 views
0 votes
1 answer

Selenium 2.0 web driver Tutorials using .NET

Docs here have an example in C#: http://seleniumhq.org/docs/03_webdriver.html using ...READ MORE

answered Apr 20, 2018 in Selenium by Vardy
• 2,280 points
12 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
276 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
639 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
265 views
0 votes
1 answer

Selenium grid 2 in chrome browser

The problem is in -Dwebdriver arguments. Maybe you should do ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,130 points
208 views
0 votes
2 answers

Python: Using an existing google chrome profile with selenium chrome web driver

The problem is with the string "C:\Users\Eric\Desktop\beeline.txt" Here, \U starts an ...READ MORE

answered May 23 in Selenium by shinio llahsra
2,218 views