Create a Login Script against the Wordpress.com Site using the IDE
Difficulty level: Easy
What you will learn?
- Record and playback
- usage of the IDE
- script saving
Pre-requisites:
- Firefox browser with Selenium IDE installed ,use link How to install Selenium IDE?
Exercise Steps:
- navigate to the http://www.wordpress.com
- login using username: foundationselenium, password: password
- Click on the Login button
Conclusions
Related Entries
Solution:
HTML Solution Script:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="http://wordpress.com/" /> <title>LoginScript</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">LoginScript</td></tr> </thead><tbody> <tr> <td>open</td> <td>http://wordpress.com/</td> <td></td> </tr> <tr> <td>waitForElementPresent</td> <td>user_login</td> <td></td> </tr> <tr> <td>type</td> <td>user_login</td> <td>foundationselenium</td> </tr> <tr> <td>waitForElementPresent</td> <td>user_pass</td> <td></td> </tr> <tr> <td>type</td> <td>user_pass</td> <td>password</td> </tr> <tr> <td>clickAndWait</td> <td>login-form</td> <td></td> </tr> </tbody></table> </body> </html>
Helpful Video:
I have also used syntax highlighter into the solution.
ReplyDeleteExercise's Slide has been updated.
ReplyDelete