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

前端 未结 1 732
花落未央
花落未央 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)
提交回复
热议问题