I believe you should be able to eval the string before you click on it: eval(@map["SubmitButton"]).click #not tested
That said, I second Željko's sugestion. Taza gives you a very object- oriented way of defining your html elements as methods in logical classes. Chandu On Oct 21, 4:47 am, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > On Thu, Oct 21, 2010 at 8:12 AM, Prajakta Jadhav <jadhav.praja...@gmail.com> > wrote:> I would like to know if there is a better way of implementing this UI > map > > than what I am thinking of. > > I would suggest you take a look at Taza: > > http://github.com/scudco/taza/ > > Željko > -- > watir.com - community manager > watirpodcast.com - host > testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com