summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php
blob: 967842b07250b0c64523c49e6db420507467c6e4 (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
<?php
//$Id: ActiveButtonTestCase.php 1405 2006-09-10 01:03:56Z wei $
class QuickstartActiveCustomValidatorTestCase extends PradoGenericSeleniumTest
{
	function test ()
	{
		$this->open("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveCustomValidator.Home&amp;notheme=true&amp;lang=en");

		$this->verifyTitle("PRADO QuickStart Sample", "");

		$this->assertTextPresent('TActiveCustomValidator Samples (AJAX)');

		$base = 'ctl0_body_';

		$this->assertNotVisible($base.'validator1');
		$this->click($base.'button1');
		$this->pause(800);
		$this->assertVisible($base.'validator1');

		$this->type($base.'textbox1', 'hello');
		$this->pause(800);
		$this->assertVisible($base.'validator1');

		$this->type($base.'textbox1', 'Prado');
		$this->pause(800);
		$this->assertVisible($base.'validator1');

		$this->click($base.'button1');
		$this->pause(800);
		$this->assertNotVisible($base.'validator1');
	}
}