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