Hi! Can you click on the span?
ff.span(:class, 'PageRight').click Hope this helps! -Tiffany On Jul 9, 1:20 am, skyski <[email protected]> wrote: > I am trying to figure out how to click a AJAX page to move to next > page. > > Below is the HTML for definition > > <span class="PageRight"><img width="41" height="16" align="absmiddle" > src="/CUSTOM/Images/Common/blank.gif"></span> > > I do see some javascript for the actual meat > > function changePage (obj, dir){ > area = $(obj).parent('div').attr('area'); > loadArea (area,dir,0,0); > > } > > $(".PageRight").click(function(){changePage($(this), > 1);}).hover(function(){$(this).addClass('PageRight_HVR');},function(){$ > (this).removeClass('PageRight_HVR');}); > > ff.image(:src, /blank.gif/).click does not do anything > > ff.image(:src, /blank.gif/).fire_event("onClick") does nothing as > well... > > What am I missing? Is there a better way? -- 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: [email protected] To unsubscribe: [email protected]
