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
4,899 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,440 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
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 in Selenium by Nabarupa
1,845 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,110 points
1,175 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,150 points
1,261 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,150 points
1,017 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,440 points
185 views