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

Selenium Manual (1)-- Introduction

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

1. I googled the information for a long time, but I didn't understand how it was that someone installed IDE and someone didn't. The official website of Selenium has been blocked. There are so few foreign language books related to Selenium 2, PDF.

two。 I only turned over the part that I think the novice needs to understand, sensational, repetitive, non-key points did not turn.

3. Welcome to correct.

4. Selenium manual English version PDF download: http://pan.baidu.com/s/1cl2qr8

Selenium introduction

Selenium is a series of tools that can meet the requirements of web software testing, and provides rich testing functions for test engineers and development engineers.

Selenium operates flexibly, allowing multiple ways to locate UI elements and compare expected test results with actual software behavior.

One of the core features of Selenium is the support for testing on multiple browser platforms.

The Development of Selenium Project

In 2004, Jason Huggins developed a JS library that allows him to automate tests on multiple browsers. This library eventually became the core of Selenium, laying the foundation for the various functions of Selenium Remote Control (RC) and Selenium IDE. Selenium RC is epoch-making because no other product allows engineers to freely choose the language to control browsers.

At this time, Selenium also has some shortcomings, that is, the security restrictions of its JS-based automation engine and browser to JS, while the rapid development of web applications, the use of a variety of new features to make the shortcomings of Selenium more prominent.

In 2006, Google engineer Simon Stewart started a project called WebDriver. Selenium is an indispensable tool in the testing of Google. Simon hopes that testing tools can break through the limitations brought by JS, and the WebDriver project is the answer to this problem.

In 2008, Selenium and WebDriver merged.

Selenium toolkit

Selenium 2 (aka Selenium WebDriver)

Selenium 2 is the product of the merger of WebDriver and Selenium, a more powerful automated testing tool.

Selenium 1 (aka Selenium RC or Remote Control)

Before the merger of WebDriver and Selenium, Selenium's main project.

Selenium IDE

Selenium IDE is a prototype tool for build scripts, a plug-in for Firefox, and an easy-to-use interface for developing automated tests. Selenium IDE has a recording feature that allows you to record a user's actions and then export a reusable script file in any language.

Note:

Although Selenium IDE has a save feature that allows users to save test files in tabular form for subsequent import or execution, it is not designed to allow users to run test files or build automated test files. In particular, Selenium IDE does not provide iterative functionality or conditional settings for test scripts. On the one hand, it is due to technical problems, on the other hand, Selenium developers advocate that the best practice of automated testing always requires a certain amount of programming work. They recommend users to use Selenium2 or Selenium1 for automated testing.

Selenium-Grid

Selenium-Grid enables Selenium RC solutions to support large test sets and test sets that need to be executed in multiple environments, that is, different tests in the test set can be run on different remote machines at the same time. This approach has two advantages. The first advantage is that users can use Selenium-Grid to divide large test sets or long-running test sets that run simultaneously on different remote machines at the same time. The second advantage is that users can use Selenium-Grid to run test sets that are required to run in multiple environments, running simultaneously on different remote machines at the same time. This will greatly reduce the testing time.

How to choose your Selenium tool

If you don't know a programming or scripting language yet, you can use Selenium IDE to familiarize yourself with Selenium commands.

If you already know a programming or scripting language, you can also use Selenium IDE to quickly implement some preliminary testing ideas.

However, we do not recommend that you use Selenium IDE for all automated testing.

Choosing Selenium 2 or Selenium 1, combined with any of its supported languages, will maximize the potential of Selenium.

Selenium-WebDriver API will be the future development direction of Selenium, and we recommend Selenium 2 for those users who have just come into contact with Selenium.

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: 0

*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