Python Selenium

2020年7月27日 星期一

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

This works for chrome-

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

from : https://stackoverflow.com/questions/35208342/how-to-open-new-tab-in-chrome-with-selenium-chromedriver-in-python
張貼者: Ryoko 於 凌晨2:11
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

關於我自己

Ryoko
檢視我的完整簡介

網誌存檔

  • ►  2022 (2)
    • ►  2月 (2)
  • ▼  2020 (5)
    • ▼  7月 (5)
      • Behave 1.2.7 - "No tests were found"
      • selenium: wait for element to be clickable not wor...
      • CRX Extractor 從 Chrome 應用程式商店下載備份 .CRX 擴充功能
      • How to open new tab in Chrome with Selenium-chrome...
      • Python selenium —— 模拟鼠标键盘操作(ActionChains)
  • ►  2015 (19)
    • ►  9月 (10)
    • ►  8月 (9)
頂尖企業主題. 技術提供:Blogger.