0w0

[selenium] CLI, GUI (백그라운드, 포그라운드) 본문

Coding/Python

[selenium] CLI, GUI (백그라운드, 포그라운드)

0w0 2019. 8. 10. 04:09
728x90
반응형

Webdrive 호출 방식

 

- CLI, background

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options=Options()
chrome_options.add_argument("--headless") #CLI
bs_driver=webdriver.Chrome(chrome_options=chrome_options, executable_path='C:\chromedriver')


- GUI, foreground

from selenium import webdriver
bs_driver=webdriver.Chrome("C:\chromedriver")

 

728x90
반응형
Comments