geckodriver in selenium webdriver 3 0 beta

0 votes

I was using geckodriver for selenium webdriver 3.0 beta release.Below is the code

WebDriver driver = new FirefoxDriver();
System.setProperty("webdriver.gecko.driver", "//lib//geckodriver");
driver.get("/");

but I got an error:

Exception in thread "main" java.lang.IllegalStateException:

The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, seehttps://github.com/mozilla/geckodriver.

Apr 9, 2018 in Selenium by ajs3033
• 7,300 points
591 views

1 answer to this question.

0 votes

Check this out

System.setProperty("webdriver.gecko.driver", "pathTogeckodriver");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
WebDriver driver = new FirefoxDriver(capabilities);
answered Apr 9, 2018 by Christine
• 15,790 points

Related Questions In Selenium

0 votes
1 answer

How can I setup Selenium Grid in Selenium 3.0

Below is the stepwise solution for setting ...READ MORE

answered Apr 27, 2018 in Selenium by Meci Matt
• 9,460 points
892 views
0 votes
1 answer

Is Selenium 3.6.0 & webdriver = new FirefoxDriver(capabilities) - deprecated?

Check this out: https://raw.githubusercontent.com/SeleniumHQ/selenium/master/rb/CHANGES 3.4.1 (2017-06-13) ================== Firefox: * Added ...READ MORE

answered May 17, 2018 in Selenium by Samarpit
• 5,910 points
1,845 views
0 votes
1 answer

How to use firefox webdriver (geckodriver) in selenium?

Firefox v47+ with selenium 2.53, you need ...READ MORE

answered Jan 8, 2019 in Selenium by Nabarupa
7,030 views
0 votes
1 answer

How to run Selenium 1.0 tests in Selenium Webdriver?

Hey @Ipshita, We can use WebDriverBackedSelenium() method to ...READ MORE

answered Jul 3, 2019 in Selenium by Anvi
• 14,150 points
677 views
0 votes
6 answers

How to specify "ENTER" button functionality in Selenium WebDriver code?

using OpenQA.Selenium.Interactions; Actions builder = new Actions(driver); ...READ MORE

answered Feb 13, 2019 in Selenium by anonymous
94,793 views
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
12,717 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
8,611 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
6,685 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,554 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