Hi, did u try this?
ff.div(:class,'roomInfo').link(:text => 'Book',:index => 1).click may be under div there are more than one link with same text On Mon, May 17, 2010 at 1:12 AM, Betsy <joybe...@gmail.com> wrote: > Hi all, > > We have a strange issue with an object which is a div. > > ff.div(:class,'roomInfo').link(:text => 'Book').exists? > returns true > ff.div(:class,'roomInfo').link(:text => 'Book').click > returns true but does not perform the required action > ff.link(:text => 'Book', :index => 15).click > returns true and performs the required action > > The same code ff.div(:class,'roomInfo').link(:text => 'Book').click > works perfectly well with Watir. > > Can anyone shed some light on the possible reasons??? > > Waiting for a revert... > -Betsy Joy > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: watir-general@googlegroups.com > To unsubscribe: > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > -- RAJIV KUMAR <http://rajivkumarnandvani.wordpress.com/> <http://learnqtphelp.blogspot.com/> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com