Hi,

  I am able to open an application through watir. I am checking the
link as
if ie.link(:xpath,"//a[contains(@href='inloggen.do')]/")
if so i am calling
 ie.link(:xpath,"//a[contains(@href='inloggen.do')]/").click

but i am getting error as

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/ie-class.rb:
465:in `method_missing': unknown property or method
`document' (WIN32OLERuntimeError)
    HRESULT error code:0x80010108
      The object invoked has disconnected from its clients.
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/ie-
class.rb:465:in `document'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/ie-
class.rb:719:in `create_xml_parser_doc'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/ie-
class.rb:708:in `xmlparser_document_object'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/ie-
class.rb:922:in `elements_by_xpath'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/ie-
class.rb:915:in `element_by_xpath'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/link.rb:
21:in `locate'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/
element.rb:55:in `assert_exists'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/
element.rb:275:in `click!'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.1/lib/watir/
element.rb:230:in `click'
        from APS.rb:16

Kindly help me on this.

Thanks
Peter

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to