Open web in new tab Selenium + Python

后端 未结 11 2223
别跟我提以往
别跟我提以往 2020-11-22 01:15

So I am trying to open websites on new tabs inside my WebDriver. I want to do this, because opening a new WebDriver for each website takes about 3.5secs using PhantomJS, I w

11条回答
  •  臣服心动
    2020-11-22 01:47

    browser.execute_script('''window.open("http://bings.com","_blank");''')
    

    Where browser is the webDriver

提交回复
热议问题