- 功能组件介绍
Selenium automates browsers. That's it!
What you do with that power is entirely up to you.Selenium automates browsers. That's it!
What you do with that power is entirely up to you.
Selenium分三个组件:
Selenium WebDriver(回归测试)
If you want to create robust, browser-based regression automation suites and tests, scale and distribute scripts across many environments, then you want to use Selenium WebDriver, a collection of language specific bindings to drive a browser - the way it is meant to be driven.
Selenium IDE(录制回放)
If you want to create quick bug reproduction scripts, create scripts to aid in automation-aided exploratory testing, then you want to use Selenium IDE; a Chrome and Firefox add-on that will do simple record-and-playback of interactions with the browser.
Selenium Grid(分布式执行)
If you want to scale by distributing and running tests on several machines and manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers/OS, then you want to use Selenium Grid.
- 参考资料
官方网站:
https://selenium.dev/
源代码:
https://github.com/SeleniumHQ/selenium
用户手册:
https://selenium.dev/documentation/en/
- 安装配置介绍
在IDEA中使用maven安装selenium的方法:
打开如下页面,选择对应版本的maven配置,添加到pom.xml中
https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/3.141.59
![85bde810b75b5a5a5c63373c7cc6224a.png](https://i-blog.csdnimg.cn/blog_migrate/3beb72f81e957d4905cb3cee444d72a5.jpeg)
web自动化