Skip to content

Leaving driver open with multiple tabs #2702

Answered by mdmintz
invokeinnovation asked this question in Q&A
Discussion options

You must be logged in to vote

See the example for opening new tabs and switching between them: SeleniumBase/examples/test_window_switching.py

For your format, you would be using sb instead of self.

Also note that some things with multiple tabs may work slightly differently in UC Mode, which may close the current tab and open a new one when navigating to a URL that has bot-detection services running on it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@invokeinnovation
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants