Skip to content

Instantly share code, notes, and snippets.

@ceronman
Created September 4, 2012 16:47
Show Gist options
  • Save ceronman/3623345 to your computer and use it in GitHub Desktop.
Save ceronman/3623345 to your computer and use it in GitHub Desktop.
Small selenium script to check colombian french embassy dates.
<?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="https://pastel.diplomatie.gouv.fr/" />
<title>Prueba</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Prueba</td></tr>
</thead><tbody>
<tr>
<td>label</td>
<td>target1</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/RDV-Internet/html/frameset/frameset.html?sgid=59&amp;lcid=1&amp;suid=3</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>BODY_WIN</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>CONTENU_WIN</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>id=boutonSuivant</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=boutonSuivant</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>relative=top</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>BODY_WIN</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>CONTENU_WIN</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>id=mois</td>
<td></td>
</tr>
<tr>
<td>waitForNotText</td>
<td>id=mois</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>id=mois</td>
<td>Octubr</td>
</tr>
<tr>
<td>selectFrame</td>
<td>relative=top</td>
<td></td>
</tr>
<tr>
<td>goto</td>
<td>target1</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