想請問一下版上先進們
chrome 可以用
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
chrome_driver = "C:\Program Files
(x86)\Google\Chrome\Application\chromedriver.exe"
driver = webdriver.Chrome(chrome_driver, chrome_options=chrome_options)
print(driver.title)
這種方式 開啟 已開啟的 chrome 瀏覽器
想請問 IE 是否也有類似的方法可以使用呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.47.140.253 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1603358182.A.B9F.html
→
10/22 17:51,
3年前
, 1F
10/22 17:51, 1F
推
10/22 17:57,
3年前
, 2F
10/22 17:57, 2F
→
10/22 17:57,
3年前
, 3F
10/22 17:57, 3F
→
10/22 18:17,
3年前
, 4F
10/22 18:17, 4F
推
10/23 10:15,
3年前
, 5F
10/23 10:15, 5F
→
10/23 13:57,
3年前
, 6F
10/23 13:57, 6F
→
10/23 13:58,
3年前
, 7F
10/23 13:58, 7F
推
10/23 14:00,
3年前
, 8F
10/23 14:00, 8F
→
10/25 17:26,
3年前
, 9F
10/25 17:26, 9F
→
10/25 17:26,
3年前
, 10F
10/25 17:26, 10F