summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php')
-rwxr-xr-xtests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php b/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php
index f6dfc22b..058aae01 100755
--- a/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php
+++ b/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php
@@ -6,37 +6,37 @@ class AutoCompleteTestCase extends PradoGenericSelenium2Test
{
$base='ctl0_Content_';
$this->url("active-controls/index.php?page=AutoCompleteTest");
- $this->assertTextPresent("TAutoComplete Test");
+ $this->assertContains("TAutoComplete Test", $this->source());
$this->assertText("{$base}label1", "Label 1");
- $this->click("{$base}textbox3");
+ $this->byId("{$base}textbox3")->click();
$this->keys('a');
$this->pause(500);
- $this->assertTextPresent('Andorra');
+ $this->assertContains('Andorra', $this->source());
$this->assertText("{$base}label1", "suggestion for a");
$this->keys('u');
$this->pause(500);
- $this->assertTextPresent('Australia');
+ $this->assertContains('Australia', $this->source());
$this->assertText("{$base}label1", "suggestion for au");
- $this->click("css=#{$base}textbox3_result ul li");
+ $this->byCssSelector("#{$base}textbox3_result ul li")->click();
$this->pause(500);
$this->assertText("{$base}label1", "Label 1: Austria");
- $this->click("{$base}textbox2");
+ $this->byId("{$base}textbox2")->click();
$this->keys('cu');
$this->pause(500);
- $this->click("css=#{$base}textbox2_result ul li");
+ $this->byCssSelector("#{$base}textbox2_result ul li")->click();
$this->pause(500);
$this->assertText("{$base}label1", "Label 1: Cuba");
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::END);
$this->keys(',me');
$this->pause(500);
- $this->click("css=#{$base}textbox2_result ul li");
+ $this->byCssSelector("#{$base}textbox2_result ul li")->click();
$this->pause(500);
$this->assertText("{$base}label1", "Label 1: Cuba,Mexico");
}