How to run browser in headless mode in Behave on LambdaTest
If you want to run a browser in headless 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 in headless mode by providing it 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",
"headless" : True
}
]
- Full documentation for configuration Behave.
paver run
###Running tests through local (windows)
behave features/test.feature
paver run jenkins