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.