selenium1 快速上手:快速上手

Selenium 不仅仅是一个工具或 API,它还包含许多工具。

WebDriver

如果您开始使用桌面网站测试自动化,那么您将使用 WebDriver APIs。
WebDriver 使用浏览器供应商提供的浏览器自动化 API 来控制浏览器和运行测试。
这就像真正的用户正在操作浏览器一样。
由于 WebDriver 不要求使用应用程序代码编译其 API,因此它本质上不具有侵入性。
因此,您测试的应用程序与实时推送的应用程序相同。

IDE

IDE (Integrated Development Environment)
is the tool you use to develop your Selenium test cases. It’s an easy-to-use Chrome
and Firefox extension and is generally the most efficient way to develop
test cases. It records the users actions in the browser for you, using
existing Selenium commands, with parameters defined by the context of
that element. This is not only a time-saver, but also an excellent way
of learning Selenium script syntax.

Grid

在 WebDriver 测试开发后不久,您可能需要在多个浏览器和操作系统组合上运行测试。
这就是 Grid应用的地方。