- Notifications
You must be signed in to change notification settings - Fork5
A sample repo to help you handle multiple tabs in automation test in Python-selenium on LambdaTest. Run your automation test python scripts on Lambdatest.
NotificationsYou must be signed in to change notification settings
Elmasekar/Python-selenium-multiple-tabs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
How to handle multiple tabs in automation test in Python-selenium onLambdaTest
If you want to handle multiple tabs using an automation test in Python-selenium on LambdaTest, you can use the follwing steps. You can refer to sample test repohere.
To open a new tab, you can use the following line of code:
driver.execute_script("window.open('about:blank','secondtab');")
To switch to the new tab, you can use the following line of code:
#by using tab namedriver.switch_to.window("secondtab")
or
#by using tab iddriver.switch_to.window("2")
python lambdatest.py
About
A sample repo to help you handle multiple tabs in automation test in Python-selenium on LambdaTest. Run your automation test python scripts on Lambdatest.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.