diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-03-05 23:02:18 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-03-05 23:02:18 +0100 |
commit | 4ce02f6973aa40c313364b5ff7990f2244309790 (patch) | |
tree | 4e55faa0ff1ae31adcd3845cc94fe384fafa29ee /tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php | |
parent | 82774aa0a41562a325f31c901584ec01c8238573 (diff) |
Started cleaning tests' selenium2 compatibility layer
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php | 16 |
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"); } |