summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/TableTestCase.php
blob: aafd6f80ab8f77689d27d165b39d2e34bfe0f281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class QuickstartTableTestCase extends PradoGenericSelenium2Test
{
	function test ()
	{
		$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TTable.Home&amp;notheme=true&amp;lang=en");

		$this->assertElementPresent("//table[@rules='all' and @border='1']");
		$this->assertElementPresent("//table/caption[@align='bottom' and text()='This is table caption']");
		$this->assertElementPresent("//th[text()='header cell 2']");
		$this->assertElementPresent("//tr[@align='right']/td[text()='text']");
		$this->assertElementPresent("//td[@align='center' and contains(text(),'cell 5')]");

		$this->assertElementPresent("//th[text()='Header 1']");
		$this->assertElementPresent("//td[text()='Cell 1']");
	}
}