"ui Test Automation selenium" Rollup

Source: Internet
Author: User
Tags selenium python selenium grid

Java implementation of the Selenium Foundation

Selenium RC Environment Configuration

Novice Automation Test (i)----Selenium IDE

Novice Automation Test (ii)----Selenium IDE feature extension

Rookie Learning Automation Test (iii)----Selenium command

Novice Automation Test (iv)----The validation page element of the Selenium command

Novice Automation Test (v)-----The Selenium command to locate the page element

Novice Automation Test (vi)----Selenium Command text template matching

Novice Automation Test (vii)----Selenium RC working principle

Novice Automation Test (eight)----Selenium 2.0 environment building (based on MAVEN)

Novice Automation Test (ix)----webdirver

=========================================================================

In the Pickup function automation distance of the last selenium study just a year or so, the past year, has been around performance testing things, on the one hand is learning performance tuning is a bottleneck, on the other hand, the demand for professional performance is not very small (at least in my job-hopping is this feeling), ashamed, Again the job-hopping can not be done to do performance.

The atmosphere of the new job is also like, the work itself is not a challenge, because the product part with Python development, so, a dangerous a bit.

have been groping whether the current products can be automated, for themselves is a challenge and improve. Give up the long-unused Java, change Python. The previous series was only a primer, and then went on to grope.

The following will be implemented with Selenium + Webdriver + python

Relationship:

Selenium Automated Test Tool: Selnium 1.0 includes: Selenium RC, selenium IDE, selenium GRID, selenium CORE

Webdriver Google's automated Testing framework (or set of specification APIs)

Webdriver and Seleinum each have advantages, two teams think the merger will be more awesome, so:

Selenium 2.0 = Selenium RC + webdriver

Selenium can be implemented in multiple languages: C #, Java, Python, Ruby ....

Environment Construction:

Selenium + Python Automated test environment build: Selenium webdriver (python)---------------- Easy automation of series catalogs-----------Easy Automation---selenium-webdriver (python) (i)

Start our first script:

    • Familiarity with selenium python code styles
    • Time.sleep () Add sleep time
    • Print printout information

Easy Automation---selenium-webdriver (python) (ii)
    • Print URL
    • Maximize your browser
    • Set browser fixed width, height
    • Navigate the browser forward and backward

Easy Automation---selenium-webdriver (python) (iii)

* Simple Object positioning:

    • · Id
    • · Name
    • · Class name
    • · Link text
    • · Partial link text
    • · Tag name
    • · Xpath
    • · CSS Selector
Easy Automation---selenium-webdriver (python) (iv)
    • Positioning a group of elements

Easy Automation---selenium-webdriver (python) (v)
    • Level positioning

Easy Automation---selenium-webdriver (python) (vi)

Action object:

    • · Click on Object
    • · Send_keys analog key input on the object
    • · Clear clears the contents of the object, if possible

Webelement Other common methods:

    • · Text gets the literal of the element
    • · Submit Form
    • · Get_attribute Getting property values

Easy Automation---selenium-webdriver (python) (vii)

Multi-layered frame or window positioning:

    • Switch_to_frame ()
    • Switch_to_window ()

Smart wait:

    • Implicitly_wait ()

Easy Automation---selenium-webdriver (python) (eight)

Invoking the JS method

    • Execute_script (script, *args)

Easy Automation---selenium-webdriver (python) (ix)
    • Uploading files

Easy Automation---selenium-webdriver (python) (10)
    • Handling drop-down boxes
    • Switch_to_alert ()
    • Accept ()

Easy Automation---selenium-webdriver (python) (11)
    • Control scroll bar to bottom
Easy Automation---selenium-webdriver (python) (12)
    • L Keyboard Key Usage
    • L Keyboard Combination Key Usage
    • L Send_keys () input Chinese operation error problem

Selenium-webdriver (Python) (13)--Cookie processing
    • Driver.get_cookies () Get cookie information
    • Add_cookie (COOKIE_DICT) Adding session information to cookies
    • Delete_cookie (name) delete a specific (partial) cookie
    • Delete_all_cookies () Delete all Cookies
Selenium-webdriver (Python) (14)--Webdriver principle
    • Webdriver Principle Analysis
Selenium-webdriver (Python) (15)--Mouse events
    • Context_click () Right-click
    • Double_click () Double-click
    • Drag_and_drop () drag

Selenium-webdriver (Python) (16)--unittest frame
    • Analysis of UnitTest test framework

The latest, "Selenium 2.0 (Python) First Edition" PDF version is coming soon, the content is more complete, the order is more reasonable. Please look forward to ...

Independent Blog:

http://www.testpub.cn/(latest public lesson video)

"ui Test Automation selenium" Rollup

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.