Closed adarmawan117 closed 1 month ago
For UC Mode, don't use multiple tabs. That'll either get you detected, or break tab order. Instead, use multiple drivers. Example:
from seleniumbase import SB
with SB(uc=True, test=True) as sb:
url = "seleniumbase.io/demo_page"
sb.driver.uc_open_with_reconnect(url)
links = sb.get_unique_links()
for link in links:
driver2 = sb.get_new_driver(undetectable=True)
driver2.uc_open_with_reconnect(link)
print(driver2.title)
sb.quit_extra_driver()
Is there any best way to open multiple tab.? For example: I have a page that contain links. And then i want to extract all link, and open it in new tab, without close first page.
This is my code
Thanks