📜  新窗口 selenium python 代码示例

📅  最后修改于: 2022-03-11 14:46:49.709000             🧑  作者: Mango

代码示例2
# 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])