Selenium self-study record 2014.12.26

Source: Internet
Author: User

Now still a little sick touyi feeling, do not know exactly where to learn from, in the end how to learn

Some of the information on hand is

"0 cost for Web Automation testing-based on selenium and bromine"

"Selenium test practice-based on e-commerce platform"

"selenium.2.testing.tools.beginners.guide.2012". pdf

"Selenium2 python automated test. pdf"

and other books

About the video and the simple recording playback operation, probably all swallowed to see. But there is a problem, I do not know the download selenium and Firefox does not match or other reasons. The scripts I've recorded are always problematic and cannot be played back directly. The first time the recording was finished, it went wrong.

For example, login to a NetEase mailbox, at the point of exit, Selenese on the direct link= exit, so in the back of the time can not find.

I am using the latest version of the Selenium IDE (2.8.0) and Firefox (34.0.5), do not know whether it is because they do not match the cause of the reason.

It took a lot of effort, slowly groping, his own changes, just reluctantly put the first recorded script playback success. As shown, the password is partially hidden.

Waitfortitle and Waitforpagetoload are my own add in, or not wait for the page load to complete it will go to find the relevant elements, it is certainly not found.

The last XPath value is read with Firebug, because my Firefox is newer, so the old version of the Firefly is not compatible. It was hard to find a December 14 Firebug (2.0.7) from the Firefox plugin center. This version is determined to support Firefox 34.0.5.

What's confusing now is:

Selenium 2 lacks PDF data, why is it almost always a problem for any script that it records to play directly?

I began to figure it out, I recorded n scripts, playback always can not find the recording element, this is the Selenium IDE bug or now the site upgrade, the elements have become dynamic? or selenium and my Firefox incompatibility caused? Do I have to go back to selenium 1.x and Firefox 3.0?

There are scripts that are exported to various languages after selenium recording is complete. Before the company tried to use the Python script, run up and Tcl as slow. Is there a script that can take care of both fault tolerance and speed, don't run so slow?

Let's learn this tonight. I decided to follow the "0 cost of Web Automation testing-based on selenium and bromine" first imitate the example of the mailbox in the relevant script to pass, and then step-by-step learning. (The Evil GFW shield the chicken sister son--gmail--harm I can only use NetEase home 126 mailbox to drill)

Selenium self-study record 2014.12.26

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.