diff options
author | wei <> | 2006-05-31 04:58:02 +0000 |
---|---|---|
committer | wei <> | 2006-05-31 04:58:02 +0000 |
commit | b21b6f82ede30d20a7d0f8e2a2ba8b682ff62113 (patch) | |
tree | 437e07c35d9a356debcaea57dc0a5a5c31668d67 /tests/FunctionalTests/selenium/php | |
parent | ce696b7979c8e4e7c72a5226f76442813fe144c9 (diff) |
Add pause to verify visible to make it work under safari.
Diffstat (limited to 'tests/FunctionalTests/selenium/php')
-rw-r--r-- | tests/FunctionalTests/selenium/php/selenium.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/FunctionalTests/selenium/php/selenium.php b/tests/FunctionalTests/selenium/php/selenium.php index 4a4c6e19..960791b8 100644 --- a/tests/FunctionalTests/selenium/php/selenium.php +++ b/tests/FunctionalTests/selenium/php/selenium.php @@ -112,15 +112,17 @@ class SeleneseInterpreter public function __call($func, $args) { if($func{0} == '_') return; + $ID = isset($args[0]) ? $args[0] : ""; - //if($ID instanceof TControl) - // $ID = $ID->ClientID; $value = isset($args[1]) ? $args[1] : ""; if(strpos(strtolower($func),'htmlpresent') || strpos(strtolower($func),'htmlnotpresent')) $ID = htmlspecialchars($ID); - //$command = "|{$func}|{$ID}|{$value}|"; $command = array($func, $ID, $value); $trace = debug_backtrace(); + + if(is_int(strpos(strtolower($func), 'visible'))) + $this->addCommand(array('pause','500',''),$trace); + return $this->addCommand($command, $trace); } |