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 in Selenium by Manju
49 views

1 answer to this question.

0 votes

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 by Anvi
• 13,840 points

Related Questions In Selenium

0 votes
1 answer
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 in Selenium by Rahul
22 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 in Selenium by Garry
22 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,090 points
800 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
1,040 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
743 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 in Selenium by Anvi
• 13,840 points
39 views