blob: 01a3b62a900cbdb614d5184d0b29bae983d59f8b (
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
|
<?php
class QuickstartDataList1TestCase extends PradoGenericSelenium2Test
{
function test()
{
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample1&notheme=true&lang=en");
// verify if all required texts are present
$this->assertTextPresent('ITN001','');
$this->assertTextPresent('$100','');
$this->assertTextPresent('Motherboard','');
$this->assertTextPresent('ITN018','');
$this->assertTextPresent('Surge protector','');
$this->assertTextPresent('45','');
$this->assertTextPresent('$15','');
$this->assertTextPresent('Total 19 products.','');
$this->assertTextPresent('Computer Parts','');
// verify specific table tags
$this->assertElementPresent("ctl0_body_DataList");
$this->assertElementPresent("//td[@align='right']");
}
}
|