blob: f5b58b487c45d4cb66e9146ea591260a3ba204ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
class QuickstartBulletedListTestCase extends PradoGenericSelenium2Test
{
function test()
{
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TBulletedList.Home&notheme=true&lang=en");
// verify if all required texts are present
$this->assertTextPresent('item 1','');
$this->assertTextPresent('item 2','');
$this->assertTextPresent('item 3','');
$this->assertTextPresent('item 4','');
$this->assertTextPresent('google','');
$this->assertTextPresent('yahoo','');
$this->assertTextPresent('amazon','');
// verify order list starting from 5
$this->assertElementPresent("//ol[@start='5']");
// unable to verify styles
// verify hyperlink list
$this->assertElementPresent("//a[@href='http://www.google.com/']");
$this->assertElementPresent("//a[@href='http://www.yahoo.com/']");
$this->assertElementPresent("//a[@href='http://www.amazon.com/']");
// verify linkbutton list
$this->clickAndWait("id=ctl0_body_ctl40", "");
$this->assertTextPresent("You clicked google : http://www.google.com/.", "");
$this->clickAndWait("id=ctl0_body_ctl41", "");
$this->assertTextPresent("You clicked yahoo : http://www.yahoo.com/.", "");
$this->clickAndWait("id=ctl0_body_ctl42", "");
$this->assertTextPresent("You clicked amazon : http://www.amazon.com/.", "");
}
}
|