https://github.com/lambdatest/pytest-headless
How to run Chrome and Firefox in headless mode in Pytest
https://github.com/lambdatest/pytest-headless
lambdatest pytest testing
Last synced: 5 months ago
JSON representation
How to run Chrome and Firefox in headless mode in Pytest
- Host: GitHub
- URL: https://github.com/lambdatest/pytest-headless
- Owner: LambdaTest
- License: mit
- Created: 2022-06-06T19:57:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-07T13:01:45.000Z (about 4 years ago)
- Last Synced: 2025-07-13T21:31:55.887Z (12 months ago)
- Topics: lambdatest, pytest, testing
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to run Chrome and firefox in headless mode in Pytest on [LambdaTest](https://www.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=Pytest-headless)
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](https://github.com/LambdaTest/pytest-selenium-sample).
# 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](http://community.lambdatest.com/)