Re: [Wtr-general] How to click variable link
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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3; onmouseover=javascript:ShowTooltip('Access detailed quality and quantity assessment page for the selected component.'); onmouseout=javascript:HideTooltip(); sys_asp /A nbsp; /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
Re: [Wtr-general] How to click variable link
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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 onmouseover=javascript:ShowTooltip('Access detailed quality and quantity assessment page for the selected component.'); onmouseout=javascript:HideTooltip(); sys_asp /A nbsp; /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
Re: [Wtr-general] How to click variable link
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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 onmouseover=javascript:ShowTooltip('Access detailed quality and quantity assessment page for the selected component.'); onmouseout=javascript:HideTooltip(); sys_asp /A nbsp; /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
Re: [Wtr-general] How to click variable link
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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3;).clickhttp://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3').click http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 onmouseover=javascript:ShowTooltip('Access detailed quality and quantity assessment page for the selected component.'); onmouseout=javascript:HideTooltip(); sys_asp /A nbsp; /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
Re: [Wtr-general] How to click variable link
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown way of finding a link Which Watir version are you using? It should work with 1.5.1.1166. You can get it here. http://wiki.openqa.org/display/WTR/Development+Builds Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to click variable link
im using watir 1.4.1 but also installed this watir-1.5.1.1127.gem On 5/23/07, Željko Filipin [EMAIL PROTECTED] wrote: On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown way of finding a link Which Watir version are you using? It should work with 1.5.1.1166. You can get it here. http://wiki.openqa.org/display/WTR/Development+Builds Zeljko ___ 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
Re: [Wtr-general] How to click variable link
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: im using watir 1.4.1 but also installed this watir-1.5.1.1127.gem Paste this into command prompt. ruby -e 'require watir; puts Watir::IE::VERSION' What do you get? In any case, you should uninstall both versions of watir and install 1.5.1.1166. :) Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to click variable link
i Have installed 1.5.1166 and problem is solved.. but when i change that link name...its not working.. is href also variable?? On 5/23/07, Željko Filipin [EMAIL PROTECTED] wrote: On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: im using watir 1.4.1 but also installed this watir-1.5.1.1127.gem Paste this into command prompt. ruby -e 'require watir; puts Watir::IE::VERSION' What do you get? In any case, you should uninstall both versions of watir and install 1.5.1.1166. :) Zeljko ___ 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
Re: [Wtr-general] How to click variable link
my watir code is... 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(:href,'http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3').click http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3%27%29.click end HTML CODE IS:- TR ID=m1359 CLASS=RowLevel1Style TD CLASS=RowLevel1 A BORDER=0 CLASS=Image ONCLICK=javascript:toggleRows('m1360');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=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3; onmouseover=javascript:ShowTooltip('Access detailed quality and quantity assessment page for the selected component.'); onmouseout=javascript:HideTooltip(); sys_asp /A nbsp; /TD TD CLASS=Hide 2.77 nbsp; /TD TD CLASS=medium High Risk /TD TD CLASS=Hide 0 /TD TD CLASS=Value A IMG SRC=themes/default/images/EastwardBlueArrow.png ALT= / /A nbsp; /TD TD CLASS=Value A IMG SRC=http://localhost:8080/CASTAD/?filename=CAST64479.png; ALT= / /A nbsp; /TD /TR in this code sys_asp is variable link.i.e user dependent. i want to click this without depending on this name.. Regards shalini ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to click variable link
This does not work? ie.link(:href, http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 ).click What happens? Do you get any error message? Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to click variable link
in the html code you have given no link is having http://172.16.59.105http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 in the href every link's href start with localhost:8080 are you sure you are using the same HTML? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to click variable link
hi, after using regular expression im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) On 5/23/07, Prema Arya [EMAIL PROTECTED] wrote: in the html code you have given no link is having http://172.16.59.105http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 in the href every link's href start with localhost:8080 are you sure you are using the same HTML? ___ 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
Re: [Wtr-general] How to click variable link
my watir code is:- 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(:href,' http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3').click $ie.link(:href,/treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS/).click end error is 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObject Exception: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) regards shalini gupta On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: hi, after using regular expression im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) On 5/23/07, Prema Arya [EMAIL PROTECTED] wrote: in the html code you have given no link is having http://172.16.59.105http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 in the href every link's href start with localhost:8080 are you sure you are using the same HTML? ___ 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
Re: [Wtr-general] How to click variable link
Shalini, The code your have written works fine here at my end using the html you have sent .. provided the link having text ,/treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS is there in the page. However, when I change the text so someting that is not there in the page it is throwing same error as you are getting. It seems to me, you are looking for a link on a screen where its not present or there is some spelling mistake in the text you are searching. Regards, Prema. On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: my watir code is:- 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(:href,'http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3').click $ie.link(:href,/treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS/).click end error is 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObject Exception: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) regards shalini gupta On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: hi, after using regular expression im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) On 5/23/07, Prema Arya [EMAIL PROTECTED] wrote: in the html code you have given no link is having http://172.16.59.105http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 in the href every link's href start with localhost:8080 are you sure you are using the same HTML? ___ 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
Re: [Wtr-general] How to click variable link
One more thing '' has different meaning in regular expression, so try escaping it out like $ie.link(:href,/treeobject=3305\object=3305\frame=FRAME_PORTAL_TOP_LEVEL_DETAILS/).click This could be the mistake... Regards, Prema On 5/23/07, Prema Arya [EMAIL PROTECTED] wrote: Shalini, The code your have written works fine here at my end using the html you have sent .. provided the link having text ,/treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS is there in the page. However, when I change the text so someting that is not there in the page it is throwing same error as you are getting. It seems to me, you are looking for a link on a screen where its not present or there is some spelling mistake in the text you are searching. Regards, Prema. On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: my watir code is:- 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(:href,' http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3').click $ie.link(:href,/treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS/).click end error is 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObject Exception: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) regards shalini gupta On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: hi, after using regular expression im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) On 5/23/07, Prema Arya [EMAIL PROTECTED] wrote: in the html code you have given no link is having http://172.16.59.105http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 in the href every link's href start with localhost:8080 are you sure you are using the same HTML? ___ 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 -- Prema Arya ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] How to click variable link
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