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