Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[building automated test environment for selenium and python]

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. First, you need to install python. The installation steps are not described in detail. Please refer to: http://www.cnblogs.com/jinshengshun/p/6102012.html

two。 When you install python, you already include pip, so use pip to install selenium directly. Enter the command directly under D:\ Python\ Scripts to install: pip install-U selenium. (that is, the installation path of python)

3. When you enter the command to install again under D:\ Python\ Scripts: pip install-U selenium prompts that selenium has been installed and tells us the path to the installation

At this point, the python+selenium environment is basically set up.

Considering the compatibility with browsers, you need to install driver. The chrome browser is used this time. So you need to install Chrome driver.

Download address: http://download.csdn.net/detail/lansefaji/8758887

Http://chromedriver.storage.googleapis.com/index.html?path=2.20/

Copy the downloaded .exe file to the installation directory of Chrome and add that directory to the environment variable Path

At this point, the construction of the environment has been completed, and you can start to write automation code.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 229

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report