Skip to content

Instantly share code, notes, and snippets.

@fabiorecife
Created November 12, 2011 16:29
Show Gist options
  • Select an option

  • Save fabiorecife/1360775 to your computer and use it in GitHub Desktop.

Select an option

Save fabiorecife/1360775 to your computer and use it in GitHub Desktop.
Selenium com GWT - exemplo simples
<?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://127.0.0.1:8888/" />
<title>selenium_test_bom</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">selenium_test_bom</td></tr>
</thead><tbody>
<tr>
<td>verifyAttribut</td>
<td></td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/atddtest.html?gwt.codesvr=127.0.0.1:9997</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=button.gwt-Button</td>
<td></td>
</tr>
<tr>
<td>waitForValue</td>
<td>//*[@myid=&quot;123&quot;]</td>
<td>SUCESSO</td>
</tr>
<tr>
<td>verifyValue</td>
<td>//*[@myid=&quot;123&quot;]</td>
<td>SUCESSO</td>
</tr>
</tbody></table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment