hi, now im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown way of finding a link ( http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3) Thanks for ur response!!
Regards Shalini On 5/23/07, Prema Arya <[EMAIL PROTECTED]> wrote:
Hi Shalini, > $ie.link(:id,"m522").click I cannot fine the link with id 'm522'. but the line you have commented as below #$ie.image(:HREF," http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3").click<http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3%22%29.click> I changed the image to link as its the href for the link. and put lower case for href it works. The error was there was a space before the url " http://" removed that also. $ie.link(:href,'http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3').click <http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3%27%29.click> Try this.. hope it works. Regards, Prema On 5/23/07, SHALINI GUPTA <[EMAIL PROTECTED]> wrote: > > hi, > this is my code snipset > def system_link > $logger.log("## CAST_HOMEPAGE_05") > $logger.log("") > $logger.log "## System link > #####################################################################\n" > $logger.log("Description-In Health Factor with lowest grade / > System subsection, click System link ") #logs only to corelogger file > $logger.log("Expected Output-Outline page displaying Focus on > System systemX - part of CORPORATE - for snapshotX snapshot should be > displayed ") > $logger.log("") > $ie.link(:id,"m522").click > #$ie.image(:HREF,"http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3 > ").click > > end > regards > shalini > > On 5/23/07, Prema Arya <[EMAIL PROTECTED] > wrote: > > > > can you send the code snippet? > > > > On 5/23/07, SHALINI GUPTA <[EMAIL PROTECTED] > wrote: > > > > > > hi, > > > Thanks!! > > > > > > im getting this problem with HREF > > > > > > 1) Error: > > > test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): > > > Watir::Exception::UnknownObjectException: Unable to locate object, > > > using HREF and > > > http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3 > > > > > > i also tried with href(lower case). > > > but the error was same. > > > > > > im sending the HTML.. > > > HTML :- > > > <TD CLASS="RowLevel1" > > > > <A BORDER="0" CLASS="Image" > > > ONCLICK="javascript:toggleRows('m523');toggleImageSource('img2','themes/default/images/open- > > > menu.gif','themes/default/images/closed-menu.gif')"><IMG ID="img2" > > > SRC='themes/default/images/closed-menu.gif' ALT="" > > > ALIGN="absmiddle"/></A> <A HREF=" http://localhost:8080/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3 > > > " onmouseover="javascript:ShowTooltip('Access detailed quality and > > > quantity assessment page for the selected component.');" > > > onmouseout="javascript:HideTooltip();" > > > > sys_asp > > > </A> > > > > > > </TD> > > > <TD CLASS="Hide" > > > > > > > 'sys_asp' is variable link...it is user defined.. > > > > > > please help its very urgent > > > Regards > > > Shalini Gupta > > > On 5/22/07, Željko Filipin < [EMAIL PROTECTED] > wrote: > > > > > > > On 5/22/07, SHALINI GUPTA < [EMAIL PROTECTED] > wrote: > > > > > > > > > > I tried to this with "href" but its not working. > > > > > > > > > > > > Hi Shalini, > > > > > > > > What error message do you get when you use href? Can you post your > > > > Watir and Ruby code? > > > > > > > > There is lot of ways you can click a link. I recommend id. > > > > > > > > Jeff has made page at Watir wiki about it. See http://wiki.openqa.org/display/WTR/Methods+supported+by+Element > > > > > > > > > > > > Zeljko > > > > -- > > > > ZeljkoFilipin.com > > > > _______________________________________________ > > > > Wtr-general mailing list > > > > Wtr-general@rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > > -- > > Prema Arya > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general@rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > -- Prema Arya _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general