Is Selenium 3.6.0 & webdriver = new FirefoxDriver(capabilities) - deprecated?

0 votes

Since upgrading to the latest version of Selenium the following code seems to be deprecated:

Selenium 3.6.0 & webdriver = new FirefoxDriver(capabilities) - deprecated? 

Full code:

System.setProperty("webdriver.gecko.driver", Base_Page.getConstant(Constant.GECKO_DRIVER_DIRECTORY));

DesiredCapabilities capabilities=DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);

webdriver = new FirefoxDriver(capabilities);   //deprecated
May 17, 2018 in Selenium by Martin
• 4,210 points
452 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

Check this out:

https://raw.githubusercontent.com/SeleniumHQ/selenium/master/rb/CHANGES

3.4.1 (2017-06-13)

==================

Firefox:

  * Added new Firefox::Options class that should be used to customize browser

    behavior (command line arguments, profile, preferences, Firefox binary, etc.).

    The instance of options class can be passed to driver initialization using

    :options key. Old way of passing these customization directly to driver

    initialization is deprecated.

From the 3.4.1 version onwards, the FirefoxOptions should be used.

answered May 17, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer

Which Firefox version is compatible with Selenium 3.6.0

You would need to use GeckoDriver if ...READ MORE

answered Apr 17, 2018 in Selenium by king_kenny
• 3,590 points
220 views
0 votes
1 answer

I tried to open a new website when a new tab is opened using Selenium Webdriver

Try this code: ArrayList<String> tabs = new ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,030 points
464 views
0 votes
1 answer
0 votes
1 answer

How to use FireFoxDriver using Selenium 3.4.0 using Maven?

Your using the wrong functions to set ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,030 points
1,148 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
60 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
431 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
49 views
0 votes
1 answer

Firefox browser not opening with given URL using Selenium Webdriver with Java

Download the latest selenium jar and replace ...READ MORE

answered Apr 30, 2018 in Selenium by Samarpit
• 5,130 points
1,526 views
0 votes
1 answer

Selenium WebDriver Real Time Projects

You should start with basics projects website ...READ MORE

answered Apr 30, 2018 in Selenium by Samarpit
• 5,130 points
983 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.