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

前端 未结 1 721
花落未央
花落未央 2021-02-14 11:35

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:10

    This works for chrome-

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

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