How to open new tab in Chrome with Selenium-chromeDriver in Python

前端 未结 1 1628
情话喂你
情话喂你 2021-02-14 11:51

Is there anybody who used ChromeDriver to open new tabs in Chrome?

With this code I can open my index.html in Chrome:

driver =          


        
1条回答
  •  滥情空心
    2021-02-14 12:18

    This works for chrome-

    driver.execute_script("window.open('https://www.google.com');")
    

    0 讨论(0)
提交回复
热议问题