# How to Select a Table Row

**URL:** <https://www.ruby-forum.com/t/how-to-select-a-table-row/138367>\
**Category:** Ruby\
**Created:** [May 22, 2008, 11:09am UTC](https://www.ruby-forum.com/t/how-to-select-a-table-row/138367 "2008-05-22T11:09:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reachbvenkat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ba8739/32.png) [@reachbvenkat](https://www.ruby-forum.com/u/reachbvenkat)\
**Post date:** [May 22, 2008, 11:09am UTC](https://www.ruby-forum.com/t/how-to-select-a-table-row/138367/1 "2008-05-22T11:09:29Z")

</div>

I’m new to Watir. I’m able to locate a row using the following statment.

tr = ie.table(:id,‘ctl00\_DefaultContent\_grdHistoryGrid’)[2]

I want to select the above row. How to do this? Please help…

thanks in advance
