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. Advertising

  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. Advertising

  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. Advertising

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. Vani
    Replies:
    1
    Views:
    158
    Jeff Wood
    Oct 26, 2005
  2. Sean Nakasone

    watir to access combobox

    Sean Nakasone, Sep 22, 2007, in forum: Ruby
    Replies:
    2
    Views:
    105
  3. Anukul Singhal
    Replies:
    1
    Views:
    167
    Charley Baker
    May 15, 2008
  4. Devabrat Kumar
    Replies:
    0
    Views:
    263
    Devabrat Kumar
    Jun 9, 2008
  5. Samiran Sil
    Replies:
    1
    Views:
    157
    Shawn Anderson
    Aug 15, 2008
Loading...

Share This Page