Shalini,

The code your have written works fine here at my end using the html you have
sent  .. provided the link having text
",/treeobject=46&object=46&frame=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=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=3').click


$ie.link(:href,/treeobject=46&object=46&frame=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=46&object=46&frame=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=46&object=46&frame=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.105<http://172.16.59.105/CASTAD/?treeobject=2&object=2&frame=FRAME_PORTAL_TOP_LEVEL_DETAILS&snapshot=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
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
>
>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general




--
Prema Arya
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to