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

>
> 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 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";

Regards
Hari

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

Reply via email to