What is the command used to register gecko driver?

+1 vote
Is it the same like chrome driver?
Jan 9, 2019 in Selenium by Neha
• 6,280 points
16,511 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 9, 2019 by Frankie
• 9,810 points

selected Feb 4, 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
• 57,550 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
8,235 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,090 points
281 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,090 points
632 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
13,143 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,510 points
130 views
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,510 points
3,168 views
0 votes
1 answer

What is the use of Sibling in Xpath?

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

answered Jan 9, 2019 in Selenium by Frankie
• 9,810 points
643 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,810 points
2,299 views