diff options
author | xue <> | 2006-06-02 17:52:02 +0000 |
---|---|---|
committer | xue <> | 2006-06-02 17:52:02 +0000 |
commit | a3c0634e2ae3aac209cf6d645df4b1791a745542 (patch) | |
tree | cf1370d4c6a76f73ba6f05cfc5dafdd3aa180abd /tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php | |
parent | 839901fda36fd734af6b86e17d11696679429fe9 (diff) |
Fix of some FT due to the change of selenium.
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php')
-rw-r--r-- | tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php b/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php index c031c5fd..7ed2b10f 100644 --- a/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php @@ -42,12 +42,13 @@ class ListBoxTestCase extends SeleniumTestCase $this->verifySelectOptions("ctl0\$body\$ctl7[]","item 1,item 2,item 3,item 4");
// multiselection list box's behavior upon postback
- $this->select("ctl0\$body\$ListBox2[]", "label=item 3");
+ $this->addSelection("ctl0\$body\$ListBox2[]", "label=item 3");
$this->clickAndWait("name=ctl0\$body\$ctl8", "");
$this->verifyText("ctl0_body_MultiSelectionResult2","Your selection is: (Index: 1, Value: value 2, Text: item 2)(Index: 2, Value: value 3, Text: item 3)(Index: 3, Value: value 4, Text: item 4)");
// Auto postback multiselection list box
- $this->selectAndWait("ctl0\$body\$ctl9[]", "label=item 1");
+ $this->addSelection("ctl0\$body\$ctl9[]", "label=item 1");
+ $this->waitForPageToLoad(1000);
$this->verifyText("ctl0_body_MultiSelectionResult","Your selection is: (Index: 0, Value: value 1, Text: item 1)(Index: 1, Value: value 2, Text: item 2)(Index: 3, Value: value 4, Text: item 4)");
// Databind to an integer-indexed array
@@ -73,7 +74,6 @@ class ListBoxTestCase extends SeleniumTestCase // List box causing validation
$this->verifyNotVisible('ctl0_body_ctl12');
$this->select("ctl0\$body\$VListBox2", "label=Agree");
-// $this->pause(1000);
$this->verifyVisible('ctl0_body_ctl12');
$this->type("ctl0\$body\$TextBox", "test");
$this->selectAndWait("ctl0\$body\$VListBox2", "label=Disagree");
|