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,250 points
3,427 views

1 answer to this question.

Your answer

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

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Do we have Selenium IDE for Chrome (like Firefox does)?

Actually, very recently Chrome has come up ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,030 points
105 views
0 votes
1 answer

geckodriver in selenium webdriver 3.0 beta

Check this out System.setProperty("webdriver.gecko.driver", "pathTogeckodriver"); DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette", ...READ MORE

answered Apr 9, 2018 in Selenium by Christine
• 15,790 points
99 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
56 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,130 points
420 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,130 points
43 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,400 points
44 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.