# Finding the Button inside the CELL

**URL:** <https://www.ruby-forum.com/t/finding-the-button-inside-the-cell/104290>\
**Category:** Rails\
**Created:** [May 16, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/finding-the-button-inside-the-cell/104290 "2007-05-16T13:54:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@amruta](https://www.ruby-forum.com/u/amruta)\
**Post date:** [May 16, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/finding-the-button-inside-the-cell/104290/1 "2007-05-16T13:54:43Z")

</div>

Hi all  
Here i am stuck to a problem . i want to execute the click event of a  
button which is being located in the table cell which dont have any id.  
So please give me any solution for that.

Example:

| 

| |

Now I want to Locate the Test Button…

Thanks in advance.

 |

---

<div class="post-metadata">

**Author:** ![amruta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@amruta](https://www.ruby-forum.com/u/amruta)\
**Post date:** [May 16, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/finding-the-button-inside-the-cell/104290/2 "2007-05-16T22:10:16Z")

</div>

On May 16, 2007, at 7:54 AM, AMruta wrote:

> ```
> <table id="ShipTableMenu" >
> 
> ```
> 
> Now I want to Locate the Test Button…
> 
> Thanks in advance.

If you have prototype.js (which you certainly do, right?), you can $  
(‘cmdTest’).click();

Your button has an id, so use it!

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
