diff options
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php b/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php index 3dc54ae2..13392ca5 100755 --- a/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php @@ -6,7 +6,7 @@ class QuickstartTabPanelTestCase extends PradoGenericSelenium2Test { $this->url("../../demos/quickstart/index.php?page=Controls.Samples.TTabPanel.Home&notheme=true&lang=en"); - $this->verifyTitle("PRADO QuickStart Sample", ""); + $this->assertEquals("PRADO QuickStart Sample", $this->title()); // verify initial visibility $this->assertNotVisible('ctl0_body_View1'); // view 1 @@ -14,7 +14,7 @@ class QuickstartTabPanelTestCase extends PradoGenericSelenium2Test $this->assertNotVisible('ctl0_body_ctl2'); // view 3 // switching to the first view - $this->click('ctl0_body_View1_0'); + $this->byId('ctl0_body_View1_0')->click(); $this->pause(500); $this->assertVisible('ctl0_body_View1'); // view 1 $this->assertNotVisible('ctl0_body_View2'); // view 2 @@ -23,7 +23,7 @@ class QuickstartTabPanelTestCase extends PradoGenericSelenium2Test $this->assertVisible('ctl0_body_View21'); // view 21 // switching to View11 - $this->click('ctl0_body_View11_0'); + $this->byId('ctl0_body_View11_0')->click(); $this->pause(500); $this->assertVisible('ctl0_body_View1'); // view 1 $this->assertNotVisible('ctl0_body_View2'); // view 2 @@ -32,14 +32,14 @@ class QuickstartTabPanelTestCase extends PradoGenericSelenium2Test $this->assertNotVisible('ctl0_body_View21'); // view 21 // switching to the third view - $this->click('ctl0_body_ctl2_0'); + $this->byId('ctl0_body_ctl2_0')->click(); $this->pause(500); $this->assertNotVisible('ctl0_body_View1'); // view 1 $this->assertNotVisible('ctl0_body_View2'); // view 2 $this->assertVisible('ctl0_body_ctl2'); // view 3 // submit: check if the visibility is kept - $this->clickAndWait("//input[@type='submit' and @value='Submit']", ""); + $this->byXPath("//input[@type='submit' and @value='Submit']")->click(); $this->assertNotVisible('ctl0_body_View1'); // view 1 $this->assertNotVisible('ctl0_body_View2'); // view 2 $this->assertVisible('ctl0_body_ctl2'); // view 3 |