# Unable to locate object using \_itemRef

**URL:** <https://www.ruby-forum.com/t/unable-to-locate-object-using-itemref/143852>\
**Category:** Ruby\
**Created:** [July 23, 2008, 10:17am UTC](https://www.ruby-forum.com/t/unable-to-locate-object-using-itemref/143852 "2008-07-23T10:17:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Post date:** [July 23, 2008, 10:17am UTC](https://www.ruby-forum.com/t/unable-to-locate-object-using-itemref/143852/1 "2008-07-23T10:17:42Z")

</div>

Hi ,

```
I m trying to click a menu where each sub menu is only

```

differentiated by \_itemRef number . its an AJAX web application . how  
can i click a submenu using \_itemRef number in watir.what should i use  
to click it like  
ie.link(:\_itemRef,8).click or what i don’t know . it is unable to locate  
the object using id or name property .please help
