diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-28 10:39:25 +0100 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2014-08-21 17:28:52 +0200 |
commit | 32dfd8233520261483bdf30f23425e3b50f05d17 (patch) | |
tree | 3e0287adbe64f07e4c04615c8f26a3b9db397b18 /tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php | |
parent | 3db08b4d991c02870d04f7198d65fd926805709c (diff) |
Ported all tests from Selenium1 (RC) to Selenium2 (WebDriver) using a compatibility layer
(cherry picked from commit 82774aa0a41562a325f31c901584ec01c8238573)
Conflicts:
tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php
tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
tests/FunctionalTests/tickets/tests/Ticket220TestCase.php
tests/FunctionalTests/tickets/tests/Ticket719TestCase.php
tests/FunctionalTests/tickets/tests/Ticket769TestCase.php
tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php b/tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php index 659f20ff..a9092225 100755 --- a/tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/RadioButtonListTestCase.php @@ -1,11 +1,11 @@ <?php //New Test -class QuickstartRadioButtonListTestCase extends PradoGenericSeleniumTest +class QuickstartRadioButtonListTestCase extends PradoGenericSelenium2Test { function test () { - $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TRadioButtonList.Home&notheme=true&lang=en", ""); + $this->url("../../demos/quickstart/index.php?page=Controls.Samples.TRadioButtonList.Home&notheme=true&lang=en"); // RadioButton list with default settings: $this->click("//input[@name='ctl0\$body\$ctl0' and @value='value 3']", ""); @@ -22,31 +22,31 @@ class QuickstartRadioButtonListTestCase extends PradoGenericSeleniumTest // RadioButton list's behavior upon postback $this->click("//input[@name='ctl0\$body\$RadioButtonList' and @value='value 3']", ""); $this->clickAndWait("//input[@type='submit' and @value='Submit']", ""); - $this->verifyTextPresent("Your selection is: (Index: 2, Value: value 3, Text: item 3)", ""); + $this->assertTextPresent("Your selection is: (Index: 2, Value: value 3, Text: item 3)", ""); // Auto postback check box list $this->clickAndWait("//input[@name='ctl0\$body\$ctl7' and @value='value 5']", ""); - $this->verifyTextPresent("Your selection is: (Index: 4, Value: value 5, Text: item 5)", ""); + $this->assertTextPresent("Your selection is: (Index: 4, Value: value 5, Text: item 5)", ""); // Databind to an integer-indexed array $this->clickAndWait("//input[@name='ctl0\$body\$DBRadioButtonList1' and @value='0']", ""); - $this->verifyTextPresent("Your selection is: (Index: 0, Value: 0, Text: item 1)", ""); + $this->assertTextPresent("Your selection is: (Index: 0, Value: 0, Text: item 1)", ""); // Databind to an associative array: $this->clickAndWait("//input[@name='ctl0\$body\$DBRadioButtonList2' and @value='key 2']", ""); - $this->verifyTextPresent("Your selection is: (Index: 1, Value: key 2, Text: item 2)", ""); + $this->assertTextPresent("Your selection is: (Index: 1, Value: key 2, Text: item 2)", ""); // Databind with DataTextField and DataValueField specified $this->clickAndWait("//input[@name='ctl0\$body\$DBRadioButtonList3' and @value='003']", ""); - $this->verifyTextPresent("Your selection is: (Index: 2, Value: 003, Text: Cary)", ""); + $this->assertTextPresent("Your selection is: (Index: 2, Value: 003, Text: Cary)", ""); // RadioButton list causing validation - $this->verifyNotVisible('ctl0_body_ctl8'); + $this->assertNotVisible('ctl0_body_ctl8'); $this->click("//input[@name='ctl0\$body\$ctl9' and @value='Agree']", ""); // $this->pause(1000); - $this->verifyVisible('ctl0_body_ctl8'); + $this->assertVisible('ctl0_body_ctl8'); $this->type("ctl0\$body\$TextBox", "test"); $this->clickAndWait("//input[@name='ctl0\$body\$ctl9' and @value='Disagree']", ""); - $this->verifyNotVisible('ctl0_body_ctl8'); + $this->assertNotVisible('ctl0_body_ctl8'); } } |