Web Automation One (selenium+python+pycharm environment building)

Source: Internet
Author: User

Years ago, the company has just set up a Web Automation testing framework of the environment, before the end of the year has not all forgotten, ready to how to set up the environment and the way you share under, where the wrong place, please criticize correct, common progress, mutual encouragement!

For this I put the environment needed to package the software to upload to Baidu Cloud, if necessary, please point

First you need to download Python and install it according to your version of Windows version 64 or 32-bit select download corresponding to install (64-bit python provided above)

It is important to note that, as shown, the add...to path is checked, and you do not need to manually configure the Python environment variables on the back.

In general, Python will default to the PIP command, so you need to verify that the PIP is installed successfully

Press the WIN+R key at the same time, enter the cmd return, enter the command line interface, enter PIP in the interface to verify the PIP is installed successfully

As shown, when you install Python, your own PIP installation succeeds

Below, the selenium will be installed by PIP.

In the command line that you just opened, enter: Pip install Selenium

This will install the latest version of selenium by default, and if you want to install a specific selenium version, you will need the PIP install selenium== version number to

To verify that the selenium is installed successfully, you need to enter the PIP list on the command line to see if there is a selenium display

Then install the Python integration environment pycharm

Directly double-click Next, pycharm because it is paid software also need to activate, point activation

Here, as requested, it is not explained in detail.

Finally, be aware that Firefox and Chrome browser drivers are copied to the installed Python folder

How do I see the python installation path?

On the command line, enter: where Python

Then tag, click the right mouse button to copy the path, and then in the folder to copy open, you need to put the driver in the Scripts folder.

Well, today's share is here, there is no understanding can be a private messages to me, thank you.

Web Automation One (selenium+python+pycharm environment building)

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.