Selenium the IDE to record login operations, export Java/junit 4/webdriver__java

Source: Internet
Author: User

The Selenium IDE can record simple browser operations and then export to the corresponding code you want.

Before I do something formal with selenium 2.46, I intend to record a simple login operation with the IDE, then export it as a Java code, and give myself an example of writing code directly behind.

"Selenium IDE Download"

Last officer net 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-> add-on-> get additional components-> the top right corner settings icon-> Install the attachment from the file, then select the selenium-ide-2.9.0.xpi you just downloaded to install


"Selenium IDE Recording"

Launch the selenium IDE from the Firefox toolbar


In BaseURL input want to simulate login BBS login URL, click Play Entire Test Suit, and then click on the right red circle button to start recording, and then began to do login and enter the forum sub version of the operation, the operation is completed after the red circle button to stop recording.


"Selenium IDE Export"

Can be exported into a variety of files, is derived into webdriver or exported into RC, later a search, or exported into Java/junit 4/webdriver

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




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.