watir , access is denied

Discussion in 'Ruby' started by Pradeepta Swain, Jun 27, 2008.

  1. Hi ,

    I am trying to insert data into text field of a frame ,however i
    am getting the error message :

    WIN32OLERuntimeError: document
    OLE error code:80070005 in <Unknown>
    Access is denied.


    HRESULT error code:0x80020009
    Exception occurred.
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2676:in
    `method_missing'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2676:in
    `document'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:918:in
    `ole_inner_elements'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:989:in
    `locate_input_element'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:3676:in
    `locate'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2366:in
    `assert_exists'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2597:in
    `enabled?'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2372:in
    `assert_enabled'
    c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:3976:in
    `set'
    ftcheck.rb:12:in `test_recorded'

    AnyBody please help ?????
    --
    Posted via http://www.ruby-forum.com/.
     
    Pradeepta Swain, Jun 27, 2008
    #1
    1. Advertisements

  2. Pradeepta Swain

    Kyle Schmitt Guest

    Well, show us the code :)
    Otherwise there's little we can do.

    On Fri, Jun 27, 2008 at 4:59 AM, Pradeepta Swain <> wrote:
    > Hi ,
    >
    > I am trying to insert data into text field of a frame ,however i
    > am getting the error message :
    >
    > WIN32OLERuntimeError: document
    > OLE error code:80070005 in <Unknown>
    > Access is denied.
    >
    >
    > HRESULT error code:0x80020009
    > Exception occurred.
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2676:in
    > `method_missing'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2676:in
    > `document'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:918:in
    > `ole_inner_elements'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:989:in
    > `locate_input_element'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:3676:in
    > `locate'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2366:in
    > `assert_exists'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2597:in
    > `enabled?'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2372:in
    > `assert_enabled'
    > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:3976:in
    > `set'
    > ftcheck.rb:12:in `test_recorded'
    >
    > AnyBody please help ?????
    > --
    > Posted via http://www.ruby-forum.com/.
    >
    >
     
    Kyle Schmitt, Jun 27, 2008
    #2
    1. Advertisements

  3. [Note: parts of this message were removed to make it a legal post.]

    On Fri, Jun 27, 2008 at 4:59 AM, Pradeepta Swain <>
    wrote:

    > Hi ,
    >
    > I am trying to insert data into text field of a frame ,however i
    > am getting the error message :
    >
    > WIN32OLERuntimeError: document
    > OLE error code:80070005 in <Unknown>
    > Access is denied.
    >



    Please see the Watir FAQ, which has a section for this question.

    http://wiki.openqa.org/display/WTR/FAQ#FAQ-WhydoIgetanaccessdeniederrorwhentryingtoaccessaframe?


    --
    Bret Pettichord
    CTO, WatirCraft LLC, http://www.watircraft.com
    Lead Developer, Watir, http://wtr.rubyforge.org
    Blog (Essays), http://www.io.com/~wazmo/blog
    MiniBlog (Links), http://feeds.feedburner.com/bretshotlist
     
    Bret Pettichord, Jun 27, 2008
    #3
  4. Kyle Schmitt wrote:
    > Well, show us the code :)
    > Otherwise there's little we can do.


    here is the code that i'm using 2 access a frame

    require 'watir'
    include Watir
    require 'test/unit'
    class TC_recorded < Test::Unit::TestCase
    def test_recorded
    ie = IE.new
    ie.goto('http://www.ft.com/home/us')
    ie.frame:)id,'ftsubscribe').text_field:)id,
    "name").set('')
    ie.frame:)id,'ftsubscribe').text_field:)id, "password").set('siddth')
    ie.close
    end
    end

    please help me . i have tried all possible measures written at watir
    site , but still i m getting the same error .
    --
    Posted via http://www.ruby-forum.com/.
     
    Pradeepta Swain, Jun 30, 2008
    #4
  5. Pradeepta Swain

    Kyle Schmitt Guest

    On Sun, Jun 29, 2008 at 10:43 PM, Pradeepta Swain
    <> wrote:
    > here is the code that i'm using 2 access a frame
    >


    Pradeepta, did you go through the suggestions on this page like Bret suggested?
    http://wiki.openqa.org/display/WTR/Frames

    Did you add the site www.ft.com to IE's trusted sites?

    At a glance your code looks OK, but I haven't tried to run it, so it
    may be a setup issue, not a code issue.

    --Kyle
     
    Kyle Schmitt, Jun 30, 2008
    #5
  6. ya kyle , i have followed all the steps given in watir FAQ,like adding
    the site to IE's trusted sites, setting IE's security level to low
    etc..still i m getting the same error , i m unable to findout any
    solution..
    --
    Posted via http://www.ruby-forum.com/.
     
    Pradeepta Swain, Jul 1, 2008
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ros@
    Replies:
    3
    Views:
    802
  2. Jay
    Replies:
    2
    Views:
    1,234
  3. Oliver
    Replies:
    0
    Views:
    257
    Oliver
    Sep 14, 2004
  4. Marc

    Security Access, Access Denied

    Marc, Aug 16, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    246
  5. Alex Washtell via .NET 247

    Web Service + Anon Access, but getting 401 Access Denied Error

    Alex Washtell via .NET 247, Apr 5, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    365
    Mauro Ottaviani [MSFT]
    Apr 5, 2005
  6. Anukul Singhal
    Replies:
    1
    Views:
    284
    Charley Baker
    May 15, 2008
  7. Samiran Sil
    Replies:
    1
    Views:
    234
    Shawn Anderson
    Aug 15, 2008
  8. Diego Fernández Santos
    Replies:
    2
    Views:
    325
Loading...