![]() |
|
#1
|
||||
|
||||
|
here's my test in plain words:
* i have a table of users. 1 user on each row. at the end of each row there are two buttons: Edit | Remove * click the Remove button (it has an id called remove_testbruker1) * when i click the Remove button, a span next to it, containing the text Delete testbruker1?, with buttons Yes | No, will be made visible using css * click Yes to delete the user * check to see that the username is no longer present on the page (it has been deleted) i was using code like this: Code:
...
<tr>
<td>click</td>
<td>id=remove_testbruker1</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>Yes</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>Yes</td>
<td></td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td></td>
<td>testbruker1</td>
</tr>
...
Code:
<tr>
<td>click</td>
<td>id=remove_testbruker1</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Yes' and @type='button' and @onclick="document.getElementById('confirmBoxtestbruker1').style.visibility='hidden';this.form.submit();"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextNotPresent</td>
<td>testbruker1</td>
<td></td>
</tr>
(see attachment: Endre == Edit, Fjern == Remove, Ja == Yes, Nei == No)
__________________
Nick Humphrey Download for free my experimental music, art, poetry and pictures. My album Classic E B-sides can be purchased on both itunes and amazon.com. Help me improve my phrasebook of world languages. I offer remote healing services. My blog. Last edited by Nickleus : 04-05-09 at 17:27. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| selenium api reference examples | Nickleus | Selenium forum | 0 | 04-05-09 10:37 |
| selenium - error link=XXX not found even though verifyTextPresent XXX is found | Nickleus | Selenium forum | 0 | 30-04-09 11:11 |
| ubuntu - acer travelmate 6292 wireless problem - not working or connecting | Nickleus | Ubuntu Linux forum | 0 | 21-01-09 09:20 |
| keyboard shortcut ctrl+i to fix indentation not working in build.xml file | Nickleus | Eclipse forum | 0 | 14-01-09 13:20 |
| Google Search advanced operator date not working? | Nickleus | Google Forum | 0 | 09-08-06 10:32 |