Skip to content

Instantly share code, notes, and snippets.

@FabricioFFC
Created March 15, 2011 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FabricioFFC/871683 to your computer and use it in GitHub Desktop.
Save FabricioFFC/871683 to your computer and use it in GitHub Desktop.
Test using Selenium IDE to test a simple captcha
<?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://www.eliasnogueira.info/" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/arquivos_blog/selenium/desafio/soma.php</td>
<td></td>
</tr>
<tr>
<td>storeText</td>
<td>number1</td>
<td>number1</td>
</tr>
<tr>
<td>storeText</td>
<td>number2</td>
<td>number2</td>
</tr>
<tr>
<td>storeEval</td>
<td>${number1}+${number2}</td>
<td>sum</td>
</tr>
<tr>
<td>type</td>
<td>soma</td>
<td>${sum}</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>submit</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>CORRETO</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