Skip to content

Optimization for opening a new tab / window #1504

@mdmintz

Description

@mdmintz

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().

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions