watir , access is denied

P

Pradeepta Swain

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 ?????
 
B

Bret Pettichord

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

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
 
P

Pradeepta Swain

Kyle said:
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('(e-mail address removed)')
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 .
 
P

Pradeepta Swain

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top