Skip to content

A sample repo to help you run Chrome and firefox in headless mode in Pytest on LambdaTest. Run your automated scripts in Pytest on LambdaTest.

License

Notifications You must be signed in to change notification settings

Riadayal/Pytest-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

How to run Chrome and firefox in headless mode in Pytest on LambdaTest

If you want to run chrome and firefox browser in headless mode for an automation test in Pytest 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 adding that as a desired capability in the conftest.py file. For example:

capabilities = {
       "build": "Sample PY Build",
       "platformName": "Windows 11",
       "browserName": "Chrome",
       "browserVersion": "latest",
       "headless": True
}

Links:

LambdaTest Community