In the string, you should specify it as "*YOUR_PARTIAL_MATCHING_STRING",
i.e.,
class: "*x-form-text x-form-field x-box-item x-form-focus" in your case.


On Mon, Oct 19, 2009 at 10:58 AM, Jian Fang <[email protected]>wrote:

> If you use jQuery selector as the runtime locator, you can use the
> following partial matching as described in the following wiki page,
>
>
> http://code.google.com/p/aost/wiki/TelluriumjQuerySelector#New_Features_Provided_by_jQuery_Selector
>
> If you use xpath as the runtime locator,  the following partial matching
> should work for you.
>
> *attribute*=value
>
> Thanks,
>
> Jian
> *
>
> On Mon, Oct 19, 2009 at 10:44 AM, Rudy Bonefas <[email protected]> wrote:
>
>>
>> Is there a way to specify a Regex or XPath string function (e.g.
>> contains) as part of  a UI attribute definition?  Here's my problem
>> (Simplified):
>>
>> I am using Ext.3.3.0:
>>
>> I have UI def like the following
>>
>>        public void defineUi() {
>>                ui.InputBox(uid: "Name", clocator: [tag: "input", type:
>> "text", id:
>> "ext-comp-1004", class: " x-form-text x-form-field x-box-item x-form-
>> focus"])
>>        }
>>
>> Note the space char at the beginning of the class value.  When Ext
>> generates this element, there really is a space there.  However, i
>> believe Tellurium normalizes the spaces for this attribute by trimming
>> the space, therefore the checked value never actually matches the
>> actual value.  I could fix this if I could replace the literal string
>> with a regex, or turn off space normaization.
>>
>> Thanks for any help in advance
>>
>> >>
>>
>

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