Skip to content

A sample repo to help you set browser-specific options in Behave on LambdaTest. Run your automation test scripts in Behave on Lambdatest.

Notifications You must be signed in to change notification settings

Elmasekar/Behave-browser-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

How to set browser specific options in Behave on LambdaTest

If you want to set browser specific options for an automation test in Behave on Lambdatest, you can use the following steps. You can refer to sample test repo here.

Steps:

You can specify the various browser specific options in the conftest.py file. The following is an example on how to set Chrome specific options using chromeOptions:

capabilities = {
       "build": "Sample PY Build",
       "platformName": "Windows 11",
       "browserName": "Chrome",
       "browserVersion": "latest",
       "chromeOptions" : {
               "args" : ["incognito"]  # ChromeOption to start chrome in incognito mode
 }
}
  • The different options available for Chrome can be referred to here.

  • For more information you can refer to this LambdaTest blog.

Run your test

Running tests through local (linux/unix)

paver run 

###Running tests through local (windows)

behave features/test.feature 

Running tests through jenkins

paver run jenkins

Links:

LambdaTest Community