Selenium IDE Record login operation, export Java/junit 4/webdriver

Source: Internet
Author: User

The Selenium IDE can record simple browser operations and then export the corresponding code as desired.

Before doing something formally with selenium 2.46, I'm going to use the IDE to record a simple login, then export it to Java code, and give myself an example of writing code directly behind it.

"Selenium IDE Download"

Last Officer Web 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 Firefox browser, add-ons, get add-ons, upper-right corner settings icon, install attachments from files, and select the selenium-ide-2.9.0.xpi you just downloaded for installation


"Selenium IDE Recording"

Launch the selenium IDE from the Firefox toolbar


Enter the BBS login URL where you want to simulate login at BaseURL, click Play Entire Test Suit, then click on the Red Circle button on the right to start recording, then start to log in and go to the Forum sub version of the operation, click the red circle button to stop recording.


"Selenium IDE Export"

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

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




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Selenium IDE Record login operation, export Java/junit 4/webdriver

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.