반응형

Selenium에서 MicroSoft Edge 이용

 

pip install selenium
pip install msedge-selenium-tools

 

msedgdriver.exe 경로는 여러분 환경에 맞게 지정합니다.

[다운로드] https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/?WT.mc_id=DT-MVP-4038148

 

from msedge.selenium_tools import Edge, EdgeOptions
from selenium.webdriver.common.keys import Keys
# Launch Microsoft Edge (Chromium)
options = EdgeOptions()
options.use_chromium = True
driver = Edge('c:/test/msedgedriver.exe', options = options)options = options)
driver.get ("https://www.google.com")

 

반응형

+ Recent posts