This error occurs when you try to navigate directly from a page that is hosted by one server to a frame that is served by another. It sounds like your staging server serves everything from one point, but your development servers serve them from a couple different servers.

The way to workaround this is to navigate directly to the subframe (and the server that hosts it) that you are trying to test (using ie.goto, if necessary).

Send the html for https://qa-b1.test.com/araneae/app, and i can give more details.

Bret


At 06:46 PM 7/21/2005, Tuyet Cong-Ton-Nu wrote:

I am back with this issue.

We have to resolve this Access is Denied issue; otherwise, we can t use WATIR (sigh!)

I am only able to use WATIR on our staging server which not in the same domain as my computer.

But for some reason, our development servers cannot be accessed by WATIR as shown below.

Any suggestion to debug this would be appreciated!



1a) Access is denied using IE.attach:



irb(main):003:0> ie = Watir::IE.attach(:url, "https://qa-b1.test.com/araneae/app";)

=> #<Watir::IE:0x2b34450 @defaultSleepTime=0.1, @error_checkers=[#<Proc:0x02ac09

[EMAIL PROTECTED]:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1213>], @logger=#<Watir::DefaultLogge

r:0x2b33b68 @level=2, @datetime_format="%d-%b-%Y %H:%M:%S", @progname=nil, @logd

ev=#<Logger::LogDevice:0x2b32c08 @shift_age=nil, @filename=nil, @dev=#<IO:0x278e

7d0>, @shift_size=nil>>, @typingspeed=0.08, @activeObjectHighLightColor="yellow"

, @enable_spinner=false, @url_list=[], @form=nil, @ie=#<WIN32OLE:0x2b341f8>>

irb(main):004:0> ie.show_frames

there are 2 frames

frame  index: 0 --Access Denied--

frame  index: 1 --Access Denied--

=> 0..1

irb(main):005:0> puts ie.frame(:index,1).text

WIN32OLERuntimeError: document

    OLE error code:80070005 in <Unknown>

      Access is denied.



1b) Access is denied  using ie.goto:



irb(main):012:0> ie.goto("https://qa-b1.test.com/araneae/app";)

W, [21-Jul-2005 15:39:11#2212]  WARN -- : frame error in waitdocument

    OLE error code:80070005 in <Unknown>

      Access is denied.



irb(main):013:0> ie.show_frames

there are 2 frames

frame  index: 0 --Access Denied--

frame  index: 1 --Access Denied--

ð      0..1



irb(main):018:0> puts ie.frame(:index, 1).text

WIN32OLERuntimeError: document

    OLE error code:80070005 in <Unknown>

      Access is denied.

    HRESULT error code:0x80020009





irb(main):019:0> puts ie.frame(:index, 2).text

WIN32OLERuntimeError: document

    OLE error code:80070005 in <Unknown>

      Access is denied.

    HRESULT error code:0x80020009





irb(main):014:0> ie.show_all_objects

-----------Objects in  page -------------

                  id=                 src=/include/top.js

HTML Document name=relay id= src=/include/blank.htm

l

HTML Document     name=main           id=                 src=/araneae/login



irb(main):015:0> ie.frame("main").show_all_objects

Watir::Exception::UnknownFrameException: Unable to locate a frame with name main

            HRESULT error code:0x80020009



2a) Here is the staging environment I ve been using to develop WATIR scripts and it works just fine:



irb(main):030:0> ie = Watir::IE.attach(:url, "https://qa.test.com/araneae/app";)

=> #<Watir::IE:0x2aeecd0 @defaultSleepTime=0.1, @error_checkers=[#<Proc:0x02ac0

[EMAIL PROTECTED]:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1213>], @logger=#<Watir::DefaultLogg

r:0x2ae9930 @level=2, @datetime_format="%d-%b-%Y %H:%M:%S", @progname=nil, @log

ev=#<Logger::LogDevice:0x2ae8190 @shift_age=nil, @filename=nil, @dev=#<IO:0x278

7d0>, @shift_size=nil>>, @typingspeed=0.08, @activeObjectHighLightColor="yellow

, @enable_spinner=false, @url_list=[], @form=nil, @ie=#<WIN32OLE:0x2aeb280>>

irb(main):031:0> ie.show_frames

there are 2 frames

frame  index: 0 name: relay

frame  index: 1 name: main

=> 0..1

irb(main):036:0> ie.frame("main").show_all_objects

-----------Objects in  page -------------

text/css          id=

                  id=                 src=/include/shared.js

                  id=                 src=/include/inputValidation.js

                  id=                 src=/include/formcheck.js

                  id=                 src=

text name=UserId id= value=tuyet a

t=                src=

password name=Password id= value= a

t=                src=

text name=CustomerId id= value=yxsrkk29ey a

t=                src=

select-one        name=Destination    id=                 value=

checkbox name=SaveSettings id= value=on a

t=                src=

                  name=               id=

button name= id=loginBtn value= Log In a

t=                src=

                  name=               id=







          Exception occurred.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to