Leaving driver open with multiple tabs #2702
-
How could I navigate to website attempt login, open new tab navigate to gmail etc, and switch back to previous tab once I've grabbed the access code? Also is there a way to run multiple tabs at once and leave them all open each performing different task at a time? this is the implementation I had for i in range(num_drivers):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
See the example for opening new tabs and switching between them: SeleniumBase/examples/test_window_switching.py For your format, you would be using 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. |
Beta Was this translation helpful? Give feedback.
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 ofself
.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.