Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Elmasekar/Python-selenium-incognito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

How to run an automation test in incognito mode in Python-selenium on LambdaTest

If you want to run you automation test in Python-selenium in incognito mode on Lambdatest, you can use the following steps. You can refer to sample test repo here.

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:

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

python lambdatest.py

Links:

LambdaTest Community

AltStyle によって変換されたページ (->オリジナル) /