Difference between revisions of "Example Selenium test"

From Organic Design wiki
(From Flouzo example)
 
(go back to main page after logout)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<selenium><html>
 +
<head>
 +
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 +
<title>Create Account</title>
 +
</head>
 +
<body>
 
<table cellpadding="1" cellspacing="1" border="1">
 
<table cellpadding="1" cellspacing="1" border="1">
 
<thead>
 
<thead>
Line 5: Line 11:
 
<tr>
 
<tr>
 
<td>open</td>
 
<td>open</td>
<td>/Special:Userlogout</td>
+
<td>{{localurl:Special:Userlogout}}</td>
 +
<td></td>
 +
</tr>
  
 +
<tr>
 +
<td>open</td>
 +
<td>{{localurl:Main Page}}</td>
 
<td></td>
 
<td></td>
 
</tr>
 
</tr>
Line 18: Line 29:
 
<tr>
 
<tr>
 
<td>clickAndWait</td>
 
<td>clickAndWait</td>
 
 
<td>link=Create an account</td>
 
<td>link=Create an account</td>
 
<td></td>
 
<td></td>
Line 27: Line 37:
 
<td>new Date().getTime()-1000000000000</td>
 
<td>new Date().getTime()-1000000000000</td>
 
<td>username</td>
 
<td>username</td>
 
 
</tr>
 
</tr>
  
Line 38: Line 47:
 
<tr>
 
<tr>
 
<td>type</td>
 
<td>type</td>
 
 
<td>wpPassword2</td>
 
<td>wpPassword2</td>
 
<td>password</td>
 
<td>password</td>
Line 47: Line 55:
 
<td>wpRetype</td>
 
<td>wpRetype</td>
 
<td>password</td>
 
<td>password</td>
 
 
</tr>
 
</tr>
  
Line 58: Line 65:
 
<tr>
 
<tr>
 
<td>verifyTitle</td>
 
<td>verifyTitle</td>
 
 
<td>glob:*successful*</td>
 
<td>glob:*successful*</td>
 
<td></td>
 
<td></td>
Line 64: Line 70:
  
 
</tbody></table>
 
</tbody></table>
 +
</body>
 +
</html>
 +
</selenium>

Latest revision as of 01:38, 4 August 2008

<selenium> Create Account

Create Account
open {{localurl:Special:Userlogout}}
open {{localurl:Main Page}}
clickAndWait link=Log in / create account
clickAndWait link=Create an account
storeEval new Date().getTime()-1000000000000 username
type wpName2 ${username}
type wpPassword2 password
type wpRetype password
clickAndWait wpCreateaccount
verifyTitle glob:*successful*

</selenium>