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 2) If the menu appears on a pure xhtml page, the xpath with namespace xhtml works for the menu 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? Please let me know the actual namespaces you used for xhtml and xforms. Thanks, Jian On Tue, May 19, 2009 at 11:41 AM, Harihara Vinayakaram <[email protected]>wrote: > True . This works in case I do not have other namespaces in the page . But > in pages where I have xforms this stops working . > > Regards > Hari > > > On Tue, May 19, 2009 at 8:13 PM, Jian Fang <[email protected]>wrote: > >> Selenium has already provided the following prefix to namespace mapping, >> >> "html" -> "http://www.w3.org/1999/xhtml" >> "xhtml" -> "http://www.w3.org/1999/xhtml" >> "x" -> "http://www.w3.org/1999/xhtml" >> "mathml" -> "http://www.w3.org/1998/Math/MathML" >> >> As a result, you do not need to register a new namespace for xhtml as long >> as >> your namespace for xhtml is "http://www.w3.org/1999/xhtml". >> >> >> On Tue, May 19, 2009 at 10:34 AM, Harihara Vinayakaram >> <[email protected]>wrote: >> >>> Hi Jian >>> I have a slightly strange situation . I have a set of pages that has a >>> mixture of xhtml and xforms elements. Some pages have only xhtml elements >>> >>> I have a top menu that appears on all pages. If the menu appears on a >>> pure xhtml page then the element in the menu is located while if the menu >>> appears on a mixed page then I am not able to locate that element >>> >>> I coded this test in Selenium and that is able to locate the element. >>> I tried adding namespace to the xhtml element and a corresponding >>> registernamespace but that too does not work (this is strange . is this a >>> selenium bug ? ) >>> >>> This is the xpath that is getting generated >>> >>> descendant-or-self::xhtml:d...@id='topnav']/descendant-or-self::xhtml:a[contains(@href,'create')]"; >>> >>> Any ideas what could be possibly wrong ? >>> >>> Re >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
