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

class QuickstartPanelTestCase extends PradoGenericSelenium2Test
{
	function test ()
	{
		$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TPanel.Home&amp;notheme=true&amp;lang=en");
		$this->assertSourceContains("This is panel content with");
		$this->assertElementPresent("//span[text()='label']");
		$this->assertSourceContains("grouping text");
		$this->byXPath("//input[@name='ctl0\$body\$ctl17']")->click();
		$this->assertSourceNotContains("You have clicked on 'button2'.");
		$this->byXPath("//input[@type='submit' and @value='button2']")->click();
		$this->assertSourceContains("You have clicked on 'button2'.");
	}
}