Movatterモバイル変換


[0]ホーム

URL:


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

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

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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.

Code

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")

Run your test

python lambdatest.py

Links:

LambdaTest Community

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp