I am sorry . Are'nt both of them same ? Am I missing something . Also yes I am using the latest selenium.jar. I saw your changes for the global namespace which I commented
If I do not a registernamespace the xpath fails Regards Hari On Wed, May 20, 2009 at 6:47 PM, Jian Fang <[email protected]> wrote: > Ah, I saw your problem. First, you do not need to registerNamespace for > html. Second, your namespace for html is not correct here, > > addNewUserUtils.registerNamespace("html","http://www/w3.org/1999/xhtml") > > should be > > addNewUserUtils.registerNamespace("html","http://www.w3.org/1999/xhtml<http://www/w3.org/1999/xhtml> > ") > > 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 -~----------~----~----~----~------~----~------~--~---
