diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php index 0d9f219d..0ef2e082 100755 --- a/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php @@ -6,11 +6,11 @@ class ActiveImageButtonTestCase extends PradoGenericSelenium2Test { $base='ctl0_Content_'; $this->url("active-controls/index.php?page=ActiveImageButtonTest"); - $this->assertTextPresent("TActiveImageButton Functional Test"); + $this->assertContains("TActiveImageButton Functional Test", $this->source()); $this->assertText("{$base}label1", "Label 1"); - $this->click("{$base}image1"); + $this->byId("{$base}image1")->click(); $this->pause(800); //unable to determine mouse position - $this->assertTextPresent("regexp:Image clicked at x=\d+, y=\d+"); + $this->assertRegExp('/Image clicked at x=\d+, y=\d+/', $this->source()); } } |