Automated testing tool--Selenium

Selenium is a tool for web application testing. Is an open source Web automated testing tool

1. Features of Selenium

1. Open source software : Open source code can increase some functions of the tool according to needs

2**. Cross-platform, multi-platform support**: linux, windows, mac

3**. Support multiple browsers**: Firefox, Internet Explorer, Safari, Opera, Chrome, Edge

4. Core function : It is possible to perform automated testing on multiple browsers

5. Support multiple languages : Java, Python, C#, JavaScript, Ruby, etc.

6. Mature and stable : it has been widely used by Google, Baidu, Tencent and other companies

7. Support the execution of distributed test cases , which can distribute test cases to different test machines for execution, which is equivalent to the function of a distribution machine

8. Powerful functions : It can realize most of the functions similar to commercial tools, and because of the open source, it can realize customized functions

2. Selenium core components

  1. selenium ide recording script
  2. Selenium grid a large number of scripts, distributed execution
  3. Selenium webdriver core, simulate browser manual operation

3. Use Selenium to build a WEB automated testing environmentEnvironment build

  1. Install Selenium
  • Installation package:pip install selenium
  • View package:pip install selenium
  • Uninstall:pip uninstall selenium
  1. Install the driver
    Because different browsers have their own independent drivers, and different versions need to download drivers that match their versions, here are the driver download locations for Google and Firefox

Guess you like

Origin blog.csdn.net/AAIT11/article/details/128582035