Selenium 简明教程
Selenium IDE - Installation
Chrome 和 Firefox 应用商店提供 Selenium Integrated Development Environment (IDE) 安装包。作为安装 Selenium Integrated Development Environment 的前提条件,我们需要在本地计算机上安装 Chrome 和 Firefox 浏览器。
Selenium Integrated Development Environment(IDE) installation is available from the Chrome and Firefox store. As a precondition for Selenium Integrated Development Environment installation, we would need the browsers Chrome and Firefox installed in the local machine.
要完成在 Chrome 中安装 Selenium Integrated Development Environment,让我们按照以下步骤操作 -
To complete the installation of Selenium Integrated Development Environment in Chrome let us follow the below steps −
Install Chrome Extension for Selenium IDE
Step 1 − 导航至下面的链接并选择 CHROME DOWNLOAD(Chrome 下载)标签页。
Step 1 − Navigate to the link below and select the CHROME DOWNLOAD tab.
Step 2 − 我们将导航至 Selenium Integrated Development Environment(Selenium 集成开发环境)的 Chrome 网络商店、扩展页面。然后,我们单击 Add to Chrome(添加到 Chrome)。
Step 2 − We would be navigated to the Chrome web store, Extensions page for Selenium Integrated Development Environment. Then we would click on Add to Chrome.
Step 3 − 在弹出窗口中,单击 Add extension(添加扩展)按钮。
Step 3 − Click on Add extension button on the pop-up.
Step 4 − Selenium Integrated Development Environment 应该已成功安装,随后我们就可以启动它。
Step 4 − Selenium Integrated Development Environment should be installed successfully after which we would be able to launch it.
Step 5 − 我们建议在步骤 4 之后重启浏览器。然后,Selenium Integrated Development Environment 图标将出现在 Chrome 浏览器的右上角,我们需要单击它以启动。
Step 5 − It is recommended that we restart the browser after Step4. Then the Selenium Integrated Development Environment icon would appear on the right upper corner of the Chrome browser, we would need to click it in order to launch.
Launch Selenium IDE in Chrome
在上图中,我们可以看到,在从 Chrome 插件启动 Selenium Integrated Development Environment 后,应显示欢迎消息和工具版本。此处,已安装的版本为 3.17.2。
In the above image, we can see, after the Selenium Integrated Development Environment was launched from the Chrome plugin, a welcome message should be displayed along with the version of the tool. Here, the version installed is 3.17.2.
除此之外,它让我们可以选择我们希望使用该工具做什么,比如在新的项目中录制新测试、打开现有项目、创建新项目和关闭它。
Along with this, it gives us the option to select what we would like to do with the tool, like Record a new test in a new project, Open an existing project, Create a new project, and Close it.
此外,还提供了带有文本 - the Selenium IDE project page 的链接,单击该链接将使我们进入 Selenium 集成开发环境文档页面。
Also, a link with the text - the Selenium IDE project page is provided, which on clicking would land us to the Selenium Integrated Development Environment documentation page.
Install Firefox Extension for Selenium IDE
Step 1 − 导航至下面的链接并选择 FIREFOX DOWNLOAD(Firefox 下载)标签页。
Step 1 − Navigate to the link below and select the FIREFOX DOWNLOAD tab.
.
Step 2 − 我们将导航至 Selenium Integrated Development Environment 的 Firefox 网络商店、扩展页面。然后,我们单击 Add to Firefox(添加到 Firefox)。
Step 2 − We would be navigated to the Firefox web store, Extensions page for Selenium Integrated Development Environment. Then we would click on Add to Firefox.
Step 3 − 将出现一个弹出窗口。我们需单击弹出窗口中的 Add(添加)按钮。
Step 3 − A pop-up window would appear. We would need to click on the Add button on the pop-up.
Step 4 − Selenium Integrated Development Environment 应该已成功安装,随后我们就可以启动它。
Step 4 − Selenium Integrated Development Environment should be installed successfully after which we would be able to launch it.
Step 5 − 我们建议在步骤 4 之后重启浏览器。然后,Selenium Integrated Development Environment 图标将出现在 Firefox 浏览器的右上角,我们需要单击它以启动。
Step 5 − It is recommended that we restart the browser after Step 4. Then Selenium Integrated Development Environment icon would appear on the right upper corner of the Firefox browser, we would need to click it in order to launch.
Launch Selenium IDE in Firefox
在上图中,我们可以看到,在从 Firefox 插件启动 Selenium Integrated Development Environment 后,应显示欢迎消息和工具版本。此处,已安装的版本为 3.17.2。
In the above image, we can see, after the Selenium Integrated Development Environment was launched from the Firefox plugin, a welcome message should be displayed along with the version of the tool. Here, the version installed is 3.17.2.
除此之外,它让我们可以选择我们希望使用该工具做什么,比如在新的项目中录制新测试、打开现有项目、创建新项目和关闭它。
Along with this, it gives us the option to select what we would like to do with the tool, like Record a new test in a new project, Open an existing project, Create a new project, and Close it.
此外,还提供了带有文本 - the Selenium IDE project page 的链接,单击该链接将使我们进入 Selenium 集成开发环境文档页面。
Also, a link with the text - the Selenium IDE project page is provided, which on clicking would land us to the Selenium Integrated Development Environment documentation page.
由此可见,Selenium Integrated Development Environment 的安装是一个非常简单的过程,并且它不需要任何特定软件即可在本地计算机中设置 Selenium Integrated Development Environment。
Thus, we see that installation of Selenium Integrated Development Environment is a very simple process, and it does not require any particular software to do the Selenium Integrated Development Environment set up in a local machine.