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,320 points
645 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,910 points

Related Questions In Selenium

0 votes
2 answers

Latest Version of Chrome Driver for Selenium Webdriver

Hi, The latest version of Chrome driver for ...READ MORE

answered Aug 28, 2019 in Selenium by Abha
• 28,140 points
5,555 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,360 points
627 views
0 votes
1 answer
+1 vote
1 answer
0 votes
2 answers

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,500 points
13,676 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,143 views
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,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,875 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,910 points
1,258 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 24, 2019 in Selenium by shinio llahsra
13,130 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP