Selenium Webdriver launches three major browsers Firefox,chrome,ie1. Installing Selenium
In the case of networking, you can install selenium automatically by entering Pip install Selenium on the Windows command Line (CMD), and after the installation is complete, enter PIP show selenium to view the current selenium version.
2. Install three major browser driver driver
1.chromedriver Drive Chromedriver
2.Firefox Drive Geckodriver
3.IE Drive Iedriver
: Link: Http://pan.baidu.com/s/1c11LuvA Password: n4yw
Note: After downloading the extract, Chromedriver.exe, Geckodriver.exe, Iedriver.exe are sent to the Scripts folder of the Python installation directory, for example D:\python\Scripts. The Python installation directory is then added to the system environment variable under path.
Then open python idle and enter the following code to launch a different browser
launch Google Chrome
from Import = webdriver. Chrome () browser.get ('http://www.baidu.com/')
Start Firefox browser
from Import = webdriver. Firefox () browser.get ('http://www.baidu.com/')
Start IE browser
from Import = webdriver. Ie () browser.get ('http://www.baidu.com/')
Selenium Webdriver launches three major browsers Firefox,chrome,ie