-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Optimization for opening a new tab / window
Looks like Selenium 4 added a built-in method for opening a new tab:
driver.switch_to.new_window("tab")
Currently, SeleniumBase has been using a hack to accomplish the same goal:
driver.execute_script("window.open('');")
The SeleniumBase built-in method, open_new_window()
should be adjusted to use the newer format.
SeleniumBase also has open_new_tab()
, which calls open_new_window()
.