Selenium WebDriver: Open new tab instead of a new window

前端 未结 2 1412
长情又很酷
长情又很酷 2020-12-05 08:17

I am using Selenium WebDriver. Every link is opened in a new browser window. It is not convenient for me. How can I change it so that it opens just in new tab?

2条回答
  •  执念已碎
    2020-12-05 08:46

    Selenium has no ability to switch tabs at the moment. Because of this we force the browser to open links in new windows but since we are able to switch windows we force the browser to take the approach. This may be fixed in a later version

提交回复
热议问题