summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php31
1 files changed, 15 insertions, 16 deletions
diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
index 257917ec..64643d9d 100755
--- a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
+++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
@@ -1,12 +1,11 @@
<?php
//$Id: ActiveCheckBoxTestCase.php 3187 2012-07-12 11:21:01Z ctrlaltca $
-class QuickstartActiveCheckBoxTestCase extends PradoGenericSeleniumTest
+class QuickstartActiveCheckBoxTestCase extends PradoGenericSelenium2Test
{
function test ()
{
- $this->setSpeed(500);
- $this->open("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveCheckBox.Home&amp;notheme=true&amp;lang=en", "");
+ $this->url("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveCheckBox.Home&amp;notheme=true&amp;lang=en");
$this->verifyTitle("PRADO QuickStart Sample", "");
@@ -14,45 +13,45 @@ class QuickstartActiveCheckBoxTestCase extends PradoGenericSeleniumTest
// an auto postback checkbox
- $this->verifyTextNotPresent("ctl0_body_ctl0 clicked using callback");
+ $this->assertTextNotPresent("ctl0_body_ctl0 clicked using callback");
$this->click("//input[@name='ctl0\$body\$ctl0']");
$this->pause(800);
$this->assertChecked("//input[@name='ctl0\$body\$ctl0']");
- $this->verifyTextPresent("ctl0_body_ctl0 clicked using callback");
+ $this->assertTextPresent("ctl0_body_ctl0 clicked using callback");
$this->click("//input[@name='ctl0\$body\$ctl0']");
$this->pause(800);
- $this->verifyTextPresent("ctl0_body_ctl0 clicked using callback");
+ $this->assertTextPresent("ctl0_body_ctl0 clicked using callback");
$this->assertNotChecked("//input[@name='ctl0\$body\$ctl0']");
// a checkbox causing validation on a textbox
- $this->verifyNotVisible('ctl0_body_ctl1');
+ $this->assertNotVisible('ctl0_body_ctl1');
$this->click("//input[@name='ctl0\$body\$ctl2']");
- $this->verifyVisible('ctl0_body_ctl1');
+ $this->assertVisible('ctl0_body_ctl1');
$this->click("//input[@name='ctl0\$body\$ctl2']", "");
- $this->verifyVisible('ctl0_body_ctl3');
+ $this->assertVisible('ctl0_body_ctl3');
$this->type("ctl0\$body\$TextBox", "test");
$this->click("//input[@name='ctl0\$body\$ctl2']", "");
$this->pause(800);
- $this->verifyNotVisible('ctl0_body_ctl1');
+ $this->assertNotVisible('ctl0_body_ctl1');
$this->assertTextPresent("ctl0_body_ctl2 clicked using callback");
// a checkbox validated by a required field validator
$this->assertNotChecked("//input[@name='ctl0\$body\$CheckBox']");
- $this->verifyNotVisible('ctl0_body_ctl4');
+ $this->assertNotVisible('ctl0_body_ctl4');
$this->click("//input[@type='submit' and @value='Submit']", "");
- $this->verifyVisible('ctl0_body_ctl4');
+ $this->assertVisible('ctl0_body_ctl4');
$this->click("//input[@name='ctl0\$body\$CheckBox']", "");
$this->assertChecked("//input[@name='ctl0\$body\$CheckBox']");
$this->click("//input[@type='submit' and @value='Submit']", "");
- $this->verifyNotVisible('ctl0_body_ctl4');
+ $this->pause(800);
+ $this->assertNotVisible('ctl0_body_ctl4');
$this->assertTextPresent("ctl0_body_CheckBox clicked");
// a checkbox validated by a required field validator using AutoPostBack
$this->assertChecked("//input[@name='ctl0\$body\$CheckBox2']");
- $this->verifyNotVisible('ctl0_body_ctl5');
+ $this->assertNotVisible('ctl0_body_ctl5');
$this->click("//input[@name='ctl0\$body\$CheckBox2']", "");
- $this->verifyVisible('ctl0_body_ctl5');
+ $this->assertVisible('ctl0_body_ctl5');
$this->assertChecked("//input[@name='ctl0\$body\$CheckBox2']");
- $this->setSpeed(0);
}
}