Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

new window selenium python

# Opens a new tab
self.driver.execute_script("window.open()")

# Switch to the newly opened tab
self.driver.switch_to.window(self.driver.window_handles[1])
 
PREVIOUS NEXT
Tagged: #window #selenium #python
ADD COMMENT
Topic
Name
9+6 =