What is the command used to register gecko driver

+1 vote
Is it the same like chrome driver?
Jan 10, 2019 in Selenium by Neha
• 6,300 points
16,956 views

3 answers to this question.

+1 vote
Best answer
System.setProperty("webdriver.gecko.driver", "C:\\geckodriver-v0.23.0-win64\\geckodriver.exe");

Almost same like chrome driver
answered Jan 10, 2019 by Frankie
• 9,830 points

selected Feb 5, 2019 by Neha
+1 vote
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Firefox {
    public static void main(String[] args) 
    {
        System.setProperty("webdriver.gecko.driver","C:\\Users\\priyj_kumar\\Downloads\\geckodriver.exe");
        WebDriver driver = new FirefoxDriver();
        driver.get("https://www.google.com");
        driver.close();
    }
}

This way you can create an instance of your gecko driver and use it accordingly.

answered Feb 6, 2019 by Priyaj
• 58,080 points
0 votes
System.setProperty("webdriver.gecko.driver","C:\\Users\\Guest\\Downloads\\geckodriver.exe");
answered Feb 15, 2019 by Dev
• 360 points

Related Questions In Selenium

0 votes
1 answer

What is the difference between driver.get() and driver.navigate.to() methods?

Hi Anandita, driver.get() method is used to ...READ MORE

answered May 30, 2019 in Selenium by Murad
29,656 views
0 votes
1 answer

What is the command to press enter inside the HTML textarea using Selenium Webdriver?

Hey Akash, Selenium provides sendKeys() method to ...READ MORE

answered Jun 25, 2019 in Selenium by Anvi
• 14,170 points
1,077 views
0 votes
1 answer

What is Marionette driver and how it can be used to instantiate Firefox webdriver?

Hey Manju, Marionette driver is the new driver ...READ MORE

answered Jul 15, 2019 in Selenium by Anvi
• 14,170 points
2,288 views
0 votes
1 answer

To check that the web page is loaded or not using Selenium Web Driver?

The solution is using Implicit Wait which ...READ MORE

answered May 24, 2018 in Selenium by Meci Matt
• 9,460 points
23,083 views
0 votes
1 answer

How do we use Gecko driver.exe with Selenium?

Recently Selenium launched v3 and if you ...READ MORE

answered Apr 7, 2018 in Selenium by nsv999
• 5,500 points
314 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
8,500 views
0 votes
1 answer

What is the use of Sibling in Xpath?

Using sibling keyword, we can fetch a ...READ MORE

answered Jan 10, 2019 in Selenium by Frankie
• 9,830 points
1,212 views
0 votes
1 answer

What is the difference between test scenarios, test cases and test script?

Difference between test scenarios and test cases ...READ MORE

answered Jan 28, 2019 in Selenium by Frankie
• 9,830 points
10,695 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP