summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls
diff options
context:
space:
mode:
authorxue <>2006-06-02 17:52:02 +0000
committerxue <>2006-06-02 17:52:02 +0000
commita3c0634e2ae3aac209cf6d645df4b1791a745542 (patch)
treecf1370d4c6a76f73ba6f05cfc5dafdd3aa180abd /tests/FunctionalTests/quickstart/Controls
parent839901fda36fd734af6b86e17d11696679429fe9 (diff)
Fix of some FT due to the change of selenium.
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls')
-rw-r--r--tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php6
-rw-r--r--tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php8
2 files changed, 7 insertions, 7 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");
diff --git a/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php b/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php
index c94a325c..90f67901 100644
--- a/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php
@@ -9,8 +9,8 @@ class MultiViewTestCase extends SeleniumTestCase
$this->verifyTitle("PRADO QuickStart Sample", "");
// view 1 : type in a string
- $this->verifyNotVisible('ctl0_body_Result1');
- $this->verifyNotVisible('ctl0_body_Result2');
+ $this->verifyElementNotPresent('ctl0_body_Result1');
+ $this->verifyElementNotPresent('ctl0_body_Result2');
$this->type('ctl0_body_Memo','test');
$this->clickAndWait('ctl0$body$ctl1');
@@ -20,8 +20,8 @@ class MultiViewTestCase extends SeleniumTestCase
$this->clickAndWait('ctl0$body$ctl7');
// view 2 : update dropdownlist
- $this->verifyNotVisible('ctl0_body_Result1');
- $this->verifyNotVisible('ctl0_body_Result2');
+ $this->verifyElementNotPresent('ctl0_body_Result1');
+ $this->verifyElementNotPresent('ctl0_body_Result2');
$this->select('ctl0$body$DropDownList', "label=Blue");
$this->clickAndWait('ctl0$body$ctl4');