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)