summaryrefslogtreecommitdiff
path: root/tests/test_tools
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-08-08 16:30:58 +0200
committerDavid <ottodavid@gmx.net>2015-08-08 17:06:53 +0200
commit3d636cf2815da4b13af2db8220d0382fea59f43f (patch)
tree2872a84b24fb36d4e6310fc3a94560d20ce089f2 /tests/test_tools
parentbdfd9f07f17de1751a7e4d94940acb426af4be77 (diff)
More test fixes
Diffstat (limited to 'tests/test_tools')
-rwxr-xr-xtests/test_tools/PradoGenericSelenium2Test.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_tools/PradoGenericSelenium2Test.php b/tests/test_tools/PradoGenericSelenium2Test.php
index 535d500d..33ab21e1 100755
--- a/tests/test_tools/PradoGenericSelenium2Test.php
+++ b/tests/test_tools/PradoGenericSelenium2Test.php
@@ -93,7 +93,13 @@ class PradoGenericSelenium2Test extends PHPUnit_Extensions_Selenium2TestCase
protected function assertValue($id, $txt)
{
- $this->assertEquals($txt, $this->getElement($id)->value());
+ try{
+ $this->assertEquals($txt, $this->getElement($id)->value());
+ } catch (PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
+ //stale element reference. try second time.
+ $this->pause(50);
+ $this->assertEquals($txt, $this->getElement($id)->value());
+ }
}
protected function assertVisible($id)