Thanks Dan.  It worked for me after doing some minor changes based on my 
requirement...Actually it worked even though there is no $ie.

On Wednesday, September 26, 2012 1:21:36 AM UTC+5:30, Dan wrote:
>
> You could do something like this
>
> if $ie.link.text.match(/^test/) then $ie.link.click end
>
> On Tuesday, September 25, 2012 9:40:07 AM UTC-4, praveen kumar wrote:
>>
>> Hi All,
>>
>> My requirement is to click on the links present in the table which have 
>> text starting with "*test*". I have written the code as below
>>
>> table = $ie.table(:id, "ctl00_mContentPlaceHolder_gvElobratedItems") 
>>     table.links.each do |link| 
>>
>> *# Here I need to click on the link starting with "test"    * 
>>      
>>     end
>>
>> So I am getting all the links present in the table. but not finding to 
>> click the specific links with "test".
>>
>> Please let me know your thoughts
>>
>> Thanks,
>> Praveen
>>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to