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,140 points
5,006 views

3 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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,570 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
• 56,120 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

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,400 points
2,643 views
+2 votes
2 answers

What are the different Locators that can be used to access Web Elements?

@Nitesh, I would like to tell you ...READ MORE

answered Dec 12, 2018 in Selenium by Priyaj
• 56,120 points
38 views
0 votes
1 answer
0 votes
1 answer
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,030 points
37 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,030 points
59 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,570 points
60 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,570 points
47 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.