[Wtr-general] clicking on a link problem

Rose Cao rosecao at us.ibm.com
Wed Feb 1 16:45:21 EST 2006






Make sure the link 'Administration' is not in any frame like 'reportframe'
etc.

If the link is in one of the frame, then will be
ie.frame("framename").link(:text, "Administration").click.

Use this to see all the frame on the web page:  ie.show_frames

Use this to see all the detail of the frame on the web page:
ie.show_all_objects

Hope this will help.


Please contact me if you have any questions or if I may be of any
assistance.

Thanks,
Rose Cao
SDC West - LLXC, ACD Team
IBM Global Services
303.924.1916 T/L 347-1916
rosecao at us.ibm.com
Highland Contractor


                                                                           
             <David.J.Solis at we                                             
             llsfargo.com>                                                 
             Sent by:                                                   To 
             wtr-general-bounc         <wtr-general at rubyforge.org>         
             es at rubyforge.org                                           cc 
                                                                           
                                                                   Subject 
             02/01/2006 02:21          [Wtr-general] clicking on a link    
             PM                        problem                             
                                                                           
                                                                           
             Please respond to                                             
                wtr-general                                                
                                                                           
                                                                           




I encountered an error that I cannot figure out. In my code, I'm linking to
a new page using

$ie.link(:text, "Administration").click

But instead, I get this error:

WIN32OLERuntimeError: Unknown property or method `document'
    HRESULT error code:0x80010108
      The object invoked has disconnected from its clients.
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1347:in `method_missing'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1347:in `document'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:899:in `getLink'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2841:in `initialize'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:570:in `new'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:570:in `link'


I have no idea what is causing this.
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060201/4aeba535/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wtr-general/attachments/20060201/4aeba535/attachment.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic32723.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wtr-general/attachments/20060201/4aeba535/attachment-0001.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wtr-general/attachments/20060201/4aeba535/attachment-0002.gif 


More information about the Wtr-general mailing list