From c5f2fb2c77e7140277349d5b1f1a8f6017909dc6 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 24 Jan 2006 01:49:53 +0000 Subject: Added assertHTMLPresent and assertHTMLNotPresent --- tests/FunctionalTests/selenium/php/selenium.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/FunctionalTests/selenium/php') 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(); -- cgit v1.2.3