Watir , access is denied

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
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:indocument’
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:inlocate_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:inassert_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:inassert_enabled’
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:3976:in
set' ftcheck.rb:12:intest_recorded’

AnyBody please help ???

Well, show us the code :slight_smile:
Otherwise there’s little we can do.

On Fri, Jun 27, 2008 at 4:59 AM, Pradeepta S.
[email protected]
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
Access is denied.

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

http://wiki.openqa.org/display/WTR/FAQ#FAQ-WhydoIgetanaccessdeniederrorwhentryingtoaccessaframe%3F

Kyle S. wrote:

Well, show us the code :slight_smile:
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(‘Financial Times’)
ie.frame(:id,‘ftsubscribe’).text_field(:id,
“name”).set(‘[email protected]’)
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 .

On Sun, Jun 29, 2008 at 10:43 PM, Pradeepta S.
[email protected] 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

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…