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
914 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,110 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
112 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 28, 2019 in Selenium by Rahul
64 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 12, 2019 in Selenium by Garry
73 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,520 points
3,821 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,803 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,767 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
3,146 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,110 points
809 views