Wired, the code worked for you before, right?

Are you sure that you used the latest selenium-server? Could you use

jar xvf selenium-server.jar

to unpack the jar and then check if  core/scripts/selenium-browserbot.js
starts with

 function NamespaceMap(){
    this.namespaceMap =  new Hashtable();
    this.namespaceMap.put("html", "http://www.w3.org/1999/xhtml";);
    this.namespaceMap.put("xhtml", "http://www.w3.org/1999/xhtml";);
    this.namespaceMap.put("x", "http://www.w3.org/1999/xhtml";);
    this.namespaceMap.put("mathml", "http://www.w3.org/1998/Math/MathML";);
};

If it is. I will hard code the xform namespace for you until we find what is
the cause for this problem.
You do not need to specify the html namespace since it is one of the default
namespaces.

Thanks,

Jian

On Wed, May 20, 2009 at 4:01 AM, Harihara Vinayakaram <[email protected]>wrote:

> Hi Jian
>    Sorry to come back on the same thing . I replaced the nameSpaceResolver
> with the original code without the hashmap and things work again :-(
>
> This is the dump information  I have two elements one with the name space
> and other without the name
>
>  [testng] Dump locator information for topmenu_xhtml
>    [testng] -------------------------------------------------------
>    [testng] topmenu_xhtml: //descendant-or-self::html:d...@id="topnav"]
>    [testng] topmenu_xhtml.Home:
> //descendant-or-self::html:d...@id="topnav"]/descendant-or-self::html:a[normalize-space(text())=normalize-space("Home")]
>    [testng] topmenu_xhtml.AddNewUser:
> //descendant-or-self::html:d...@id="topnav"]/descendant-or-self::html:a[contains(@href,"create")]
>    [testng] -------------------------------------------------------
>    [testng]
>    [testng]
>    [testng] Dump locator information for topmenu
>    [testng] -------------------------------------------------------
>    [testng] topmenu: //descendant-or-self::d...@id="topnav"]
>    [testng] topmenu.Home:
> //descendant-or-self::d...@id="topnav"]/descendant-or-self::a[normalize-space(text())=normalize-space("Home")]
>    [testng] topmenu.AddNewUser:
> //descendant-or-self::d...@id="topnav"]/descendant-or-self::a[contains(@href,"create")]
>    [testng] -------------------------------------------------------
>
> This is how I call the registerNamespace()
>
> addNewUserUtils.registerNamespace("xforms", "http://www.w3.org/2002/xforms
> ")
> addNewUserUtils.registerNamespace("html","http://www/w3.org/1999/xhtml";)
>
> Regards
> Hari
>
>
> On Tue, May 19, 2009 at 10:00 PM, John <[email protected]> wrote:
>
>>
>> Please also run the dump(uid) method on your UI module to show all
>> generated xpaths for all elements.
>>
>> Thanks,
>>
>> Jian
>>
>> On May 19, 12:25 pm, Jian Fang <[email protected]> wrote:
>> > See my comments inline
>> >
>> > On Tue, May 19, 2009 at 12:12 PM, Harihara Vinayakaram <
>> [email protected]>wrote:
>> >
>> >
>> >
>> > > Answers inline
>> >
>> > > On Tue, May 19, 2009 at 9:22 PM, Jian Fang <[email protected]
>> >wrote:
>> >
>> > >> I need a bit more details from you. Let me try to repeat your problem
>> here
>> > >> to see if it is correct.
>> >
>> > >> 1) The Menu only includes xhtml
>> >
>> > > Yes
>> >
>> > >> 2) If the menu appears on a pure xhtml page, the xpath with namespace
>> > >> xhtml works for the menu
>> >
>> > > On a pure xhtml page the xpath with / without namespace works in
>> Selenium .
>> > > The xpath without namespace works in Tellurium. Even if I register
>> namespace
>> > > it does not work with Tellurium
>> >
>> > What are the xpaths for Selenium with and without namespace?
>> >
>> > What is the xpath for Tellurium with namespace?
>> >
>> > Please show me the registerNamespace command.
>> >
>> > Except the Menu, other xpath with namespace in Tellurium works, right?
>> >
>> > >> 3) If the page has a mixture of xhtml and xforms namespaces, you
>> register
>> > >> the namespace for xforms,
>> > >> then the xhtml namespace for the menu does not work anymore, right?
>> >
>> > > Yes . This again is only with Tellurium Ui module
>> >
>> > Please show me the UI module and your registerNamespace command.
>> >
>> > > Please let me know the actual namespaces you used for xhtml and
>> xforms.
>> >
>> > > xmlns:xhtml="http://www.w3.org/1999/xhtml
>> > > xmlns:xforms="http://www.w3.org/2002/xforms";
>> >
>> > Thanks,
>> >
>> > Jian
>>
>>
>
> >
>

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