Selenium Webdriver +python Explanation

Source: Internet
Author: User
Tags selenium grid

1. Selenium1.0 Genealogy:

1.1 Selenium IDE: is a plug-in embedded in the browser to enable simple browser operation of the recording and playback functions. The official definition: Quickly create a bug replay script that, during tester testing, discovers a bug and can record the steps back through the IDE to help developers reproduce the bug more easily.

1.2 Selenium Grid: an automated test aid that allows the grid to speed up Web-app functional testing by leveraging existing computer infrastructures. Using grids makes it easy to run test cases on multiple machines and purchased environments.

1.3 Selenium RC: is a core part of the Selenium family. Selenium RC supports automated test scripts written in many different languages and uses Selenium RC servers as proxy servers to access applications for automated testing purposes. It is made up of client Libraries and selenium server. Client libraties Library The primary user writes a test script to control the Selenium server library. Selenium Server is responsible for controlling browser behavior, which consists of launcher, Http Proxy, and core. Where selenium core is embedded in the browser page by Selenium core (a collection of JavaScript functions). Launcher is used to launch the browser, load the selenium core into the browser page, and set the browser proxy to selenium Server's HTTP proxy.

2. Selenium 2.0 (Selenium 2.0 = Selenium 1.0 +webdriver):

The webdriver in selenium can be seen as a substitute for selenium RC, then they are two different:

    • Selenium RC is a JavaScript app running in a browser, using the browser's built-in JavaScript translator to translate and execute Selenese commands (Selenium command collection)
    • Webdriver directly controls the browser via native browser support or browser extensions. Webdriver is developed for individual browsers, replacing JavaScript embedded in the Web application under test, tightly integrated with the browser, so it supports more advanced testing and avoids the limitations of JavaScript security mode.

3. Build the test environment:

Install python-> configuration python environment variables, install selenium (pip install selenium), install browser driver->selenium IDE plug-in

4.python Foundation

5. Simple use of the Selenium IDE.

6. Developer Tools How to view XPath Css.

7. A brief introduction to the framework.

· Introduction to Special Packages

Selenium Webdriver +python Explanation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.