After a further look, the element itself contains the text " Add Sub
Account". I think Selenium is probably trimming the leading spaces,
whereas the jQuery selector may not be. Either way the selector is
fine in XPath but fails in jQuery unless I add a "*", which I do not
really want to do as I will need to find text " D" on this page and
that will undoubtedly find more than one element.

On Jun 3, 10:26 am, dominicm <[email protected]> wrote:
> HI,
>
> Looks like there may be a bug:
>
> UI module looks like this:
>
> ui.Container(uid:"masterAccountHomepage", clocator:
> [class:'GlobalBackground'], group: "false"){
>          UrlLink(uid:'addSubAccount',clocator:[text:'Add Sub Account'])
>
> }
>
> This works fine in XPath but in jQuery I get an error:
>
> <<ERROR: Element jquery=*.GlobalBackground a:te_text(Add Sub Account)
> not found>>
>
> Shouldn't the locator be "a:text"?
--~--~---------~--~----~------------~-------~--~----~
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