Selenium IDE recording login operation, export Java/Junit 4/WebDriver, junitwebdriver

Source: Internet
Author: User

Selenium IDE recording login operation, export Java/Junit 4/WebDriver, junitwebdriver

Selenium IDE can record simple browser operations and export the desired code.

Before using Selenium 2.46 to officially do some things, I plan to use IDE To record simple login operations, export them into Java code, and write the code below as an example.

[Selenium IDE download]

On the official website to find the latest IDE download link: http://release.seleniumhq.org/selenium-ide/2.9.0/selenium-ide-2.9.0.xpi

Selenium IDE Installation]

Open the FireFox browser-> additional components-> get additional components-> set icon in the upper right corner-> install attachments from files, and then select the selenium-ide-2.9.0.xpi you just downloaded for Installation


[Selenium IDE recording]

Start Selenium IDE from the FireFox Toolbar


In the BaseURL field, enter the BBS logon URL to simulate logon, click Play Entire Test Suit, and then click the Red Circle button on the right to start recording. Then, log on to and access the Forum subversion, after the operation is complete, click the Red Circle button to stop recording.


[Selenium IDE export]

It can be exported to multiple files, whether it is exported to WebDriver or RC, and then searched, or exported to Java/JUnit 4/WebDriver.

Link: http://www.ibm.com/developerworks/cn/web/1309_fengyq_seleniumvswebdriver/




Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.