# Watir with javascript/css menus and events

**URL:** <https://www.ruby-forum.com/t/watir-with-javascript-css-menus-and-events/145084>\
**Category:** Ruby\
**Created:** [August 5, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/watir-with-javascript-css-menus-and-events/145084 "2008-08-05T20:46:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadmontplaisir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@chadmontplaisir](https://www.ruby-forum.com/u/chadmontplaisir)\
**Post date:** [August 5, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/watir-with-javascript-css-menus-and-events/145084/1 "2008-08-05T20:46:28Z")

</div>

Hi everyone,

So I have a small problem. I need to create a mock up of a Watir test  
against a site that uses both javascript drop down menus as well as CSS  
based drop down menus. I am unable to figure out how to get Watir to  
access the menus. As an aside, I will also eventually need to figure  
out how to have Watir fire off javascript actions on a page on command  
if that is even possible. If anyone has any examples of this or knows  
of a place where I can go to find some examples, that would be great.  
Google has been of surprisingly little use on the matter.

Thanks for the help,

Chad

---

<div class="post-metadata">

**Author:** ![chadmontplaisir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@chadmontplaisir](https://www.ruby-forum.com/u/chadmontplaisir)\
**Post date:** [August 5, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/watir-with-javascript-css-menus-and-events/145084/2 "2008-08-05T21:09:07Z")

</div>

The answer might be here  
[http://wiki.openqa.org/display/WTR/FAQ](http://wiki.openqa.org/display/WTR/FAQ)

If not, we answer questions like this all the time on the Watir-General  
google group. You are welcome to take it there.

Bret
