summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php')
-rwxr-xr-xtests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
index f037b5e4..3b5ebfcb 100755
--- a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
+++ b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
@@ -9,8 +9,8 @@ class DataTypeValidatorTestCase extends PradoGenericSelenium2Test
{
$base = "ctl0_Content_";
$this->url("validators/index.php?page=DataTypeValidator");
- $this->assertTextPresent("Data Type Validator Tests", "");
- $this->click("//input[@type='submit' and @value='submit!']", "");
+ $this->assertContains("Data Type Validator Tests", $this->source());
+ $this->byXPath("//input[@type='submit' and @value='submit!']")->click();
$this->pause(500);
$this->assertNotVisible("{$base}validator1");
@@ -20,7 +20,7 @@ class DataTypeValidatorTestCase extends PradoGenericSelenium2Test
$this->type("{$base}textbox1", "a");
$this->type("{$base}textbox2", "b");
$this->type("{$base}textbox3", "c");
- $this->click("//input[@type='submit' and @value='submit!']", "");
+ $this->byXPath("//input[@type='submit' and @value='submit!']")->click();
$this->pause(500);
$this->assertVisible("{$base}validator1");
@@ -30,7 +30,7 @@ class DataTypeValidatorTestCase extends PradoGenericSelenium2Test
$this->type("{$base}textbox1", "12");
$this->type("{$base}textbox2", "12.5");
$this->type("{$base}textbox3", "2/10/2005");
- $this->clickAndWait("//input[@type='submit' and @value='submit!']", "");
+ $this->byXPath("//input[@type='submit' and @value='submit!']")->click();
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
@@ -39,7 +39,7 @@ class DataTypeValidatorTestCase extends PradoGenericSelenium2Test
$this->type("{$base}textbox1", "12.2");
$this->type("{$base}textbox2", "-12.5");
$this->type("{$base}textbox3", "2/13/2005");
- $this->click("//input[@type='submit' and @value='submit!']", "");
+ $this->byXPath("//input[@type='submit' and @value='submit!']")->click();
$this->pause(500);
$this->assertVisible("{$base}validator1");