How to open a new window or tab in webdriver (Python)?

后端 未结 4 2227
终归单人心
终归单人心 2021-01-06 11:49

I have tried various commands like

driver.switch_to_window(\"_blank\")

or

driver.switch_to_window(None)

b

4条回答
  •  爱一瞬间的悲伤
    2021-01-06 12:17

    Look at this question. Seems like the library doesn't support tab management atm.

    But the second-highest rated answer does offer a solution. I think you can easily translate it to Python.

提交回复
热议问题