What is the command used to register gecko driver?

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

selected Feb 4 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 by Priyaj
• 57,300 points
0 votes
System.setProperty("webdriver.gecko.driver","C:\\Users\\Guest\\Downloads\\geckodriver.exe");
answered Feb 15 by Dev
• 360 points

Related Questions In Selenium

0 votes
1 answer
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 in Selenium by Anvi
• 13,960 points
55 views
0 votes
1 answer
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,440 points
6,713 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,430 points
81 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,430 points
1,193 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 in Selenium by Frankie
• 9,810 points
320 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 in Selenium by Frankie
• 9,810 points
484 views