new_tab
The command to open a new browser tab and switch to it.
Syntax
py.switch_to.new_tab() -> PyleniumUsage
# Open a new window and hold it in a variable
tab = py.switch_to.new_tab()
---or---
# Open a new window and chain a command
py.switch_to.new_tab().visit("https://qap.dev")Arguments
Yields
Last updated