https://github.com/lambdatest/unittest-incognito
How to run an automation test in incognito mode in UnitTest on LambdaTest
https://github.com/lambdatest/unittest-incognito
lambdatest testing unittest
Last synced: 5 months ago
JSON representation
How to run an automation test in incognito mode in UnitTest on LambdaTest
- Host: GitHub
- URL: https://github.com/lambdatest/unittest-incognito
- Owner: LambdaTest
- Created: 2022-06-07T12:45:37.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-08T10:33:52.000Z (about 4 years ago)
- Last Synced: 2025-07-04T03:43:57.793Z (about 1 year ago)
- Topics: lambdatest, testing, unittest
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to run an automation test in incognito mode in UnitTest on [LambdaTest](https://www.lambdatest.com/?utm_source=github&utm_medium=repo&utm_campaign=UnitTest-incognito)
If you want to run you automation test in UnitTest in incognito mode on Lambdatest, you can use the following steps. You can refer to sample test repo [here](https://github.com/LambdaTest/Python-UnitTest-Selenium).
# Steps:
You can specify the incognito option in the test file capabilities. The following is an example on how to set incognito option using chromeOptions:
```python
desired_caps = {
'LT:Options': {
"build": "Python Demo", # Change your build name here
"name": "Python Demo Test", # Change your test name here
"platformName": "Windows 11",
"selenium_version": "4.0.0",
"chromeOptions" : {
"args" : ["incognito"] # ChromeOption to start chrome in incognito mode
}
},
"browserName": "Chrome",
"browserVersion": "98.0",
}
```
## Run your test
```bash
python lambdatest.py
```
# Links:
[LambdaTest Community](http://community.lambdatest.com/)