Added a trim method to remove leading and trailing spaces to the te_text()
method, please update your custom selenium server from Maven repo at

http://kungfuters.org/nexus/content/repositories/thirdparty/org/seleniumhq/selenium/server/selenium-server/1.0-te-2/selenium-server-1.0-te-2.jar

Let us know if you have any further problems with the te_text().

Thanks,

Jian

On Wed, Jun 3, 2009 at 10:02 AM, Jian Fang <[email protected]> wrote:

> Even you define the text as clocator:[text:' Add Sub Account']) and still
> cannot find it?
>
> Yes, add "*" is not a good idea. We can also use the same as xpath, i.e.,
> add normalize-size
> to trim spaces.
>
> Thanks,
>
> Jian
>
>
> On Wed, Jun 3, 2009 at 9:45 AM, dominicm <[email protected]>wrote:
>
>>
>> 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