Skip to content

Run browser in headless mode in Behave on LambdaTest. A sample repo to help you run browser in headless mode 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-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

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.

Steps:

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.

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