summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/selenium/php/selenium.php
diff options
context:
space:
mode:
authorwei <>2006-01-24 01:49:53 +0000
committerwei <>2006-01-24 01:49:53 +0000
commitc5f2fb2c77e7140277349d5b1f1a8f6017909dc6 (patch)
treee5e3c4a48e600fad0568836b674c54a8cbc59f56 /tests/FunctionalTests/selenium/php/selenium.php
parentaa86c856381014ff5881fab590942554e432f917 (diff)
Added assertHTMLPresent and assertHTMLNotPresent
Diffstat (limited to 'tests/FunctionalTests/selenium/php/selenium.php')
-rw-r--r--tests/FunctionalTests/selenium/php/selenium.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/FunctionalTests/selenium/php/selenium.php b/tests/FunctionalTests/selenium/php/selenium.php
index e9f7250d..36d86e1e 100644
--- a/tests/FunctionalTests/selenium/php/selenium.php
+++ b/tests/FunctionalTests/selenium/php/selenium.php
@@ -116,6 +116,8 @@ class SeleneseInterpreter
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();