selenium web browser

  selenium web browser: After downloading the appropriate driver is good, you need to put the installation directory under python, hold on, then you need to configure the environment variables, and fill executable_path = "driver installation path" in your browser brackets. Do not fill in python path

import selenium
import selenium.webdriver
driver=selenium.webdriver.Firefox()
#driver=selenium.webdriver.Chrome()
#driver=selenium.webdriver.Ie()

 

Guess you like

Origin www.cnblogs.com/my-global/p/12460930.html