how to open a new tab python selenium code example
Example: selenium python activate new tab
# Open a new window
browser.execute_script("window.open('');")# Switch to the new window and open URL B
browser.switch_to.window(browser.window_handles[1])
browser.get(tab_url)