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,510 points
5,019 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,010 points
132 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,720 points
65 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
2,104 views
0 votes
1 answer
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
1,484 views
0 votes
1 answer
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,850 points
1,462 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,850 points
1,221 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
207 views