hi,
I get errors when i call the sfBrowser::click() method.
-----------------------
version: 1.0.9
file: lib/sfBrowser.class.php
lineno: 410
code: $value = $xpath->query('descendant::option', $element)-
>item(0)->getAttribute('value');
-----------------------
Because i have a field like this: <select name="bla"></select>, so
$xpath->query('descendant::option', $element)->item(0) return null,
maybe we need check it first.
like:
-----------
if ($xpath->query('descendant::option', $element)->item(0) != null) {
$value = $xpath->query('descendant::option', $element)->item(0)-
>getAttribute('value');
}
-----------
Zhou
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---