Introducing FirefoxOptions for selenium 3.x

From selenium 3.0 beta 4, selenium introduced class FirefoxOptions to Manage firefox specific settings in a way gecko driver can understand.

Let’s see how firefox settings we can use in selenium easily

Before to selenium 3.0, used firefox profile as

Now we can write without using the FirefoxProfile as

profile.setPreference can be written as options.addPreference

if you enter caps. you will get lots of methods for your needs.

FirefoxDriver(Capabilities capabilities) – Deprecated, Instead you can Use FirefoxDriver(FirefoxOptions)

Reference:
FirefoxOptions

Content posted is based on learning or working experience, Share the post with others if find useful, Any queries?, leave comments or discuss on our facebook:qavalidation.com, Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: