summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php')
-rwxr-xr-xtests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php b/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php
index 0ee8c27c..d4c44a34 100755
--- a/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php
+++ b/tests/FunctionalTests/validators/tests/ValidationSummaryTestCase.php
@@ -8,36 +8,36 @@ class ValidationSummaryTestCase extends PradoGenericSelenium2Test
$base = "ctl0_Content_";
$this->url("validators/index.php?page=ValidationSummary");
- $this->assertTextPresent("Validation Summary Test", "");
+ $this->assertContains("Validation Summary Test", $this->source());
//$this->assertText("{$base}summary1", "");
//$this->assertText("{$base}summary2", "");
- $this->click("//input[@type='submit' and @value='Create New Account']", "");
+ $this->byXPath("//input[@type='submit' and @value='Create New Account']")->click();
$this->assertVisible("{$base}summary1");
$this->assertNotVisible("{$base}summary2");
- $this->click("//input[@type='submit' and @value='Sign In']", "");
+ $this->byXPath("//input[@type='submit' and @value='Sign In']")->click();
$this->assertNotVisible("{$base}summary1");
$this->assertVisible("{$base}summary2");
$this->type("{$base}Username", "qwe");
$this->type("{$base}Password", "ewwq");
- $this->click("//input[@type='submit' and @value='Sign In']", "");
+ $this->byXPath("//input[@type='submit' and @value='Sign In']")->click();
$this->assertNotVisible("{$base}summary1");
$this->assertVisible("{$base}summary2");
- /*$this->clickAndWait("//input[@type='submit' and @value='Create New Account']", "");
+ /*$this->byXPath("//input[@type='submit' and @value='Create New Account']")->click();
$this->type("{$base}UserID", "123");
$this->type("{$base}Pass", "123");
- $this->clickAndWait("//input[@type='submit' and @value='Sign In']", "");
+ $this->byXPath("//input[@type='submit' and @value='Sign In']")->click();
//$this->assertText("{$base}summary1", "");
//$this->assertText("{$base}summary2", "");
- $this->clickAndWait("//input[@type='submit' and @value='Create New Account']", "");
+ $this->byXPath("//input[@type='submit' and @value='Create New Account']")->click();
//$this->assertText("{$base}summary1", "");
//$this->assertText("{$base}summary2", "");
$this->type("{$base}Password", "");
- $this->click("//input[@type='submit' and @value='Create New Account']", "");
+ $this->byXPath("//input[@type='submit' and @value='Create New Account']")->click();
$this->assertVisible("{$base}summary1");
$this->assertNotVisible("{$base}summary2");