Hi
   Do you know of any  way to register a namespace so that Selenium does not
barf ?  I am not able to find any

Regards
Hari

On Sun, Mar 15, 2009 at 8:40 AM, John <[email protected]> wrote:

>
> Well, I guess that is the correct behavior because XHTML is not HTML,
> for example, regular HTML does not
> have any namespace, but XHTML does. That is why getHtmlsource() return
> error since Selenium core does not
> know how to handle the XHTML. but getBodyText() will return everything
> as a big chunk of text and you need to
> do the parsing by yourself.
>
> For XPath parser to work with xhtml, the namespaces have to be
> registered. I guess the "xhtml" is one of the
> default namespace, while "xforms" is not and the parser does not
> really know how to handle it. That may be the
> reason why getXPathCount("//xforms:groups")  throws errors.
>
> On Mar 14, 10:59 pm, Harihara Vinayakaram <[email protected]> wrote:
> > Thanks will try that . What I meant by that namespace example was that
> any
> > namespace other than xhtml is throwing an error.
> >
> > (i.e.)
> > getXPathCount("//xforms:groups") gives an error saying invalid XPath
> >
> > Also interestingly when I try the getHtmlsource() I get an error which
> > looked a bit strage. But getBodyText() worked
> >
> > Regards
> > Hari
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-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/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to