Skip to content

Instantly share code, notes, and snippets.

@wk-j
Created December 10, 2014 09:00
Show Gist options
  • Save wk-j/1e156f68202932c7ae2b to your computer and use it in GitHub Desktop.
Save wk-j/1e156f68202932c7ae2b to your computer and use it in GitHub Desktop.
<?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://192.168.0.86:11113/" />
<title>Search</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Search</td></tr>
</thead><tbody>
<tr>
<td>store</td>
<td>0</td>
<td>x</td>
</tr>
<tr>
<td>while</td>
<td>${x} &lt;= 100</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=loginForm:user-name</td>
<td>admin</td>
</tr>
<tr>
<td>type</td>
<td>id=loginForm:user-password</td>
<td>admin</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=loginForm:submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=dashboard:search</td>
<td>*gmail*</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>xpath=(//img[@alt='Go'])[2]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=logout</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>new Number(${x} + 1)</td>
<td>x</td>
</tr>
<tr>
<td>endWhile</td>
<td></td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment