There is an extension for Firefox called Selenium IDE. How do I click just on an element containing text in Selenium IDE? As an example, let's imagine I want to post an ad on Gumtree (in reality I don't, it's just the simplest publicly visible example I can think of).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://ift.tt/mOIMeg">
<html xmlns="http://ift.tt/lH0Osb" xml:lang="en" lang="en">
<head profile="http://ift.tt/1goHyeI">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://ift.tt/1HZSYNR" />
<title>gumtree</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">gumtree</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>http://ift.tt/1SaEWPb;
<td></td>
</tr>
<tr>
<td>click</td>
<td> *** what do I put in here to choose "For Sale"? *** </td>
<td></td>
</tr>
<tr>
<td>click</td>
<td> *** what do I put in here to choose "House Clearance"? *** </td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=continueButton</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Many thanks
Aucun commentaire:
Enregistrer un commentaire