In this particular instance you are right, I could use the id, however
the app I'm testing isn't very consistent with ids. With the following
html (that I've just taken from another screen in the application) I'd
have bigger problems;

<input type="input" value=""
name="frameworkSearchItemName##ota:CompanyInfo/ota:ContactPerson/ota:Telephone/@PhoneNumber"
id="frameworkSearchItemName##ota:CompanyInfo/ota:ContactPerson/ota:Telephone/@PhoneNumber"
tabindex="36">

On 6 April 2010 12:29, Haroon Rasheed <[email protected]> wrote:
> In such cases, I look for alternative unique locators such as Ids. In the
> following case the UI definition would be.
> <input type="text" class="medium paxFerryNameInput" value=""
> name="Profile/Customer/Telephone/@PhoneNumber" maxlength="16"
> id="phone1" tabindex="26">
>
> Container(uid: "phone") {
>                Container(uid: "mobile") {
>                    InputBox(uid: "number", clocator: [id:
> "phone1"])
>                }
> }
>
>
> Cheers
> Haroon
> On 6 April 2010 11:19, Jonathan Share <[email protected]> wrote:
>>
>> Hi,
>>
>> In my html I have input fields defined as follows (note the @ in the
>> name);
>>
>> <input type="text" class="medium paxFerryNameInput" value=""
>> name="Profile/Customer/Telephone/@PhoneNumber" maxlength="16"
>> id="phone1" tabindex="26">
>>
>> that I have modelled as follows;
>>
>> Container(uid: "phone") {
>>                Container(uid: "mobile") {
>>                    Selector(uid: "country", clocator: [name:
>> "Profile/Customer/Telephone/@CountryAccessCode"])
>>                    InputBox(uid: "number", clocator: [name:
>> "Profile/Customer/Telephone/@PhoneNumber"])
>>                }
>> }
>>
>> Using the CSS selectors (as is now the default) firefox freezes,
>> providing the slow script warning dialog stating that the jQuery.js
>> script is spending too much time on line 2663. I assume that the @ in
>> my clocator needs to be escaped before you send it further to jQuery.
>> This isn't a huge problem for me as I have just added a call to
>> disableCSSSelector(), this allows my test to pass for now but it would
>> be nice to be able to upgrade some time in the future.
>>
>> Regards,
>>
>> Jonathan
>>
>> --
>> 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.
>>
>
> --
> 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.
>

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