Selenium Webdriver launches three major browsers Firefox,chrome,ie

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.