In Selenium why does Firefox requires GeckoDriver?

0 votes

I wanted to use Selenium with all the 3 Browsers, So, I wrote the following different codes:

FirefoxDriver driver = new FirefoxDriver();
ChromeDriver driver = new ChromeDriver();
InternetExplorerDriver driver = new InternetExplorerDriver();

With Chrome and IE  it works fine, but it throws the following error with firefox:

"The geckodriver.exe file does not exist in the current directory or in a directory on the PATH environment variable"

Why does firefox requires geckoDriver?

May 7, 2018 in Selenium by Damon Salvatore
• 5,550 points
5,881 views

1 answer to this question.

0 votes

Firefox requires GeckoDriver because:

For Mozilla Firefox till version 47, we didn't need geckoDriver. But the Mozilla Firefox after version 47, comes with Marionette, which is an automation driver for Mozilla's  It can remotely control either the UI or the internal JavaScript of a Gecko platform, such as Firefox. So, we require GeckoDriver for FireFox. 

answered May 7, 2018 by Meci Matt
• 9,460 points

Related Questions In Selenium

0 votes
1 answer

Why there is a need of GeckoDriver to launch Firefox in Selenium?

Hello Sunaina, Gecko driver is required to ...READ MORE

answered Jul 5, 2019 in Selenium by Anvi
• 14,090 points
205 views
0 votes
1 answer

Hi There, You said Selenium is a Firefox plugin then why does selenium support in other browsers(Chrome, IE, etc)?

Hi, Selenium IDE was initially a Firefox ...READ MORE

answered Jul 15, 2019 in Selenium by Abha
• 27,930 points
111 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
3,867 views
0 votes
1 answer
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,510 points
3,525 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,531 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,890 points
2,593 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 2 in Selenium by Sri
• 2,970 points
2,858 views
0 votes
1 answer

How can I Install Selenium IDE in Firefox

Selenium IDE works with all Firefox versions, ...READ MORE

answered Apr 13, 2018 in Selenium by Meci Matt
• 9,460 points
637 views