Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.25 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.25 KB

How to run browser in incognito mode in Behave on LambdaTest

If you want to run a browser in incognito mode 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 run a test with chrome browser in incognito mode. You will have to provide this as a capability in config.json file. The config.json would look something like this:

[
   {
   	"platform": "Windows 10",
   	"browserName": "chrome",
   	"version": "latest",
   	"build": "Behave Selenium Sample",
   	"name": "Behave Sample Test",
   	"chromeOptions" : {
               "args" : ["incognito"]  # ChromeOption to start chrome in incognito mode
   }
]
  • Full documentation for configuration Behave.

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