Difference between revisions of "Example Selenium test"

From Organic Design wiki
(Wrap with <selenium> tags)
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 6: Line 12:
 
<td>open</td>
 
<td>open</td>
 
<td>/wiki/index.php?title=Special:Userlogout</td>
 
<td>/wiki/index.php?title=Special:Userlogout</td>
 
 
<td></td>
 
<td></td>
 
</tr>
 
</tr>
Line 18: Line 23:
 
<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 31:
 
<td>new Date().getTime()-1000000000000</td>
 
<td>new Date().getTime()-1000000000000</td>
 
<td>username</td>
 
<td>username</td>
 
 
</tr>
 
</tr>
  
Line 38: Line 41:
 
<tr>
 
<tr>
 
<td>type</td>
 
<td>type</td>
 
 
<td>wpPassword2</td>
 
<td>wpPassword2</td>
 
<td>password</td>
 
<td>password</td>
Line 47: Line 49:
 
<td>wpRetype</td>
 
<td>wpRetype</td>
 
<td>password</td>
 
<td>password</td>
 
 
</tr>
 
</tr>
  
Line 58: Line 59:
 
<tr>
 
<tr>
 
<td>verifyTitle</td>
 
<td>verifyTitle</td>
 
 
<td>glob:*successful*</td>
 
<td>glob:*successful*</td>
 
<td></td>
 
<td></td>
Line 64: Line 64:
  
 
</tbody></table>
 
</tbody></table>
 
+
</body>
[[Category:Selenium]]
+
</html>
 +
<selenium>

Revision as of 04:23, 11 December 2007

<selenium> Create Account

Create Account
open /wiki/index.php?title=Special:Userlogout
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>