Hi
   I did some more investigations . This is source of the xhtml file is
something like

<?xml version="1.0" encoding="UTF-8"?>
<xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:xforms="
http://www.w3.org/2002/xforms"; xmlns:xhtml="http://www.w3.org/1999/xhtml";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
    <xhtml:head>
......
    </xhtml:head>
    <xhtml:body>
            <xforms:submit....>
               ...
                                     <xforms:input
model="clinicalExaminationModel"
ref="/root/ClinicalExamination/GeneralExamination/Weight">
                    <xforms:label>Weight </xforms:label>
                </xforms:input>
.
              ....
    </xhtml:body>
</xhtml:html>

Now when I use Tellurium I get the following responses :
        getXPathCount("//xhtml:html")   ----> 1
        getXPathCount("//xhtml:body")  ----> 1
        getXPathCount("//xhtml:body//xforms:groups")   --> gives invalid
xpath

The xpath that is generated when I try ui.Input is
    //inp...@ref="....."]
and when I try TextBox if it
   //*...@ref="..."]

Based on the above is why I supsect there is a implicit xhtml namespace
understanding but does not understand anything else

Where do I override the default input tag ?

Regards
Hari

On Sat, Mar 14, 2009 at 11:26 PM, John <[email protected]> wrote:

>
> Hi Hari,
>
> I don't think html uses any namespace and the namespace should not
> matter here.
> TextBox is an abstraction for read-only text and it does not have any
> input methods such
> as type. You have to use InputBox for the XForm. The difference in
> your two UI definition
> is that the InputBox one uses the default tag "input". Also respond
> attribute only includes
> Javascript events such as "click", "mouseOver", and so on. Put "type"
> inside the response
> attribute will not work.
>
> Could you look at the log to see what xpath is generated for your UI
> definition
>
>  ui.InputBox(uid:"Weight" clocator:[ref:"  "])
>
> Then try to use XPather to locate the generated xpath to see if you
> can find it there.
>
> If still not working, try to overwrite the InputBox default tag and
> set it to empty, in that way,
> the generated xpath should be the same as the TextBox one. That is to
> say,
>
>  ui.InputBox(uid:"Weight" clocator:[tag: "", ref:"  "])
>
> Let me know if you still have problems.
>
> Thanks,
>
> Jian
>
> On Mar 14, 5:04 am, Harihara Vinayakaram <[email protected]> wrote:
> > Hi
> >   I was trying to see if I can use Tellurium to test the XForms. I have
> > installed the Firefox XForm Extension and I am able to see the form in
> > Firefox. I am able to see the element in Firebug
> >
> > <input model="clinicalExaminationModel"
> > ref="/root/ClinicalExamination/GeneralExamination/Weight" type="
> http://www.w3.org/2001/XMLSchema#string"; typelist="
> http://www.w3.org/2001/XMLSchema#string";>
> >                     <label>Weight </label>
> >                 </input>
> >
> > If I define this a
> >     ui.TextBox (uid:"Weight" clocator: [ref:" ...."])
> >
> > I am able to get the text as Weight
> >
> > But if I define this
> >     ui.InputBox(uid:"Weight" clocator:[ref:"  "])
> >
> > then I am not able to locate the element .
> >
> > I wanted to type in a value
> >
> > I tried
> >     ui.TextBox (uid:"Weight" clocator: [ref:" ...."] respond:['type'])
> >
> > But I am not able to respond to a type command
> >
> > Let me know if I am missing something .
> >
> > Regards
> > Hari
> >
> > PS : If it helps the namespaces are
> > <html xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:xforms="
> http://www.w3.org/2002/xforms"; xmlns:xhtml="http://www.w3.org/1999/xhtml";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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