thanks Tiffany we've spend some time on #watir irc and got it to work with frame for this page, will see how it goes with later pages... $ie.frame(:name, "menu").link(:text, 'Operate on Sensor Points').click
On Mar 20, 9:33 am, Tiffany Fodor <tcfo...@comcast.net> wrote: > Hi! > > Have you tried :text or :href? If all else fails, you might be able > to use :index, but I'd recommend that as a last resort. You could try > in irb with index just to make sure you can click on it and then work > on a better solution from there. > > Also, I've run into cases where the link is actually a span. > > Hope this helps! > > -Tiffany > > On Mar 20, 10:58 am, anssirius <anssir...@gmail.com> wrote: > > > hello > > need some help here... trying to click on a link on jsp page using > > xpath but tried a few and none are working... > > > here's the html tag from IE Developer tool bar: > > <A title="To Operate On Sensor Points" href="javascript:window.open('/ > > sirius/SiteMgrs.jsp? > > sel=SaveSensorPoints','_parent','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');">Operate > > on Sensor Points</A> > > > these are the ones i've tried: > > # $ie.link(:xpath,"//a[conta...@href ,'To Operate on Sensor > > Points']/").click > > # $ie.link(:xpath,"//a[conta...@title ,'To Operate on Sensor > > Points']/").click > > # $ie.link(:xpath,"//a[conta...@href , 'SiteMgrs.jsp? > > sel=SaveSensorPoints']/").click > > # $ie.link(:xpath,"//a[conta...@href , 'javascript:window.open('/ > > sirius/SiteMgrs.jsp? > > sel=SaveSensorPoints','_parent','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')']/").click > > #$ie.link(:xpath,"//a[conta...@href , 'javascript:window.open('/sirius/ > > SiteMgrs.jsp?sel=SaveSensorPoints']/").click > > > any other ways to click on this link? > > thx! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---