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.
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.
paver run
###Running tests through local (windows)
behave features/test.feature
paver run jenkins