What is Marionette driver and how it can be used to instantiate Firefox webdriver

0 votes
What is Marionette driver and how it can be used to instantiate Firefox webdriver?
Jul 15, 2019 in Selenium by Manju
3,315 views

1 answer to this question.

+1 vote

Hey Manju, Marionette driver is the new driver that is included with Firefox. This driver has it's own protocol which is not directly compatible with the Selenium/WebDriver protocol. Up to version 47, the driver used to automate Firefox was an extension included with each client. The Gecko driver is an application server implementing the Selenium/WebDriver protocol. It translates the Selenium commands and forwards them to the Marionette driver

Marionette driver uses the remote protocol of Firefox which can control the UI. It accepts requests and executes them in Gecko. It also have a client. The client sends instructions to the server and the server executes the instructions within the browser. You can create a Firefox driver instance with Marionette capabilities like this:

DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(“marionette”, true);
WebDriver driver = new FirefoxDriver(capabilities);

Or you can also use FirefoxOptions:
FirefoxOptions options = new FirefoxOptions().setLegacy(true);
WebDriver driver = new FirefoxDriver(options);
WebDriver driver = new RemoteWebDriver(remoteUrl, options.toDesiredCapabilities());

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

answered Jul 15, 2019 by Anvi
• 14,150 points

Related Questions In Selenium

0 votes
1 answer

What is the webdriver that can be used with firefox?

You can use Firefox Gekodriver to use ...READ MORE

answered Jan 2, 2019 in Selenium by Nabarupa
824 views
0 votes
1 answer
0 votes
1 answer

What is Selenium Grid and when it can be used?

Hello Janki, Selenium Grid is a part ...READ MORE

answered May 29, 2019 in Selenium by Rahul
711 views
0 votes
0 answers

What is JUnit @ignore test annotation and when it can be used?

What is JUnit @ignore test annotation and ...READ MORE

Jun 13, 2019 in Selenium by Garry
753 views
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,500 points
13,773 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,188 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,910 points
7,263 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 3, 2020 in Selenium by Sri
• 3,190 points
7,902 views
0 votes
1 answer
0 votes
1 answer

How can firefox driver be installed and configured on MacOS?

Hi Urvashi, follow these steps to download ...READ MORE

answered Jul 18, 2019 in Selenium by Anvi
• 14,150 points
4,256 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP