I happy to say it works, I add the IP server in trust server in security option of Internet Explorer and it works perfectly...
Thank's for everoby help, Best regards On Nov 29, 8:38 pm, jw <[email protected]> wrote: > You probably have tried this, but just in case... you get access > refused when you do > > ie.frame(:index,1).text_field(:index,1).flash > > but what if you just do > > ie.frame(:index,1).exists? > > On Nov 28, 1:34 pm, "[email protected]" > > > > <[email protected]> wrote: > > I have a script that goes perfectly on my notebook, with ruby 1.8.6 > > and watir 1.8.6 and XP SP2 on whose the script is perfect... > > > I copy / paste the scrip on a other PC, same ruby version ,same watir > > version, the only one difference is Windows XP SP3.....and it crash !! > > > I can't acces frame I show them the frames with show_all_objects, but > > impossible to acces them...is there a problem with rigth access with > > windows XP SP3 ? > > > if I try by index I have a "acces refused" > > > example by name an by index below > > > Thank's lot if you have a solution... > > > irb(main):001:0> require 'watir' > > irb(main):002:0> ie = Watir::IE.start("http://192.168.47.36:8080/ > > XINDOC-DEV/inde > > x.htm") > > => #<Watir::IE:0x32ae588 @error_checkers=[], > > @page_container=#<Watir::IE:0x32ae5 > > 88 ...>, @activeObjectHighLightColor="yellow", @ole_object=nil, > > @rexmlDomobject= > > nil, @logger=#<Watir::DefaultLogger:0x32ae498 @level=2, > > @formatter=#<Logger::Sim > > pleFormatter:0x32ae3d0 @datetime_format="%d-%b-%Y %H:%M:%S">, > > @default_formatter > > =#<Logger::Formatter:0x32ae45c @datetime_format=nil>, @progname=nil, > > @logdev=#<L > > ..... > > > irb(main):004:0> ie.show_frames > > there are 2 frames > > => 0..1 > > irb(main):005:0> ie.show_all_objects > > -----------Objects in page ------------- > > id= src= > > Document HTML name=emptyRow id= src= > > Document HTML name=mainFrame id= > > src=home.screen > > => nil > > > irb(main):003:0> ie.frame(:name, 'mainFrame').exists? > > Watir::Exception::UnknownFrameException: Unable to locate a frame with > > name main > > Frame > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > frame.rb:40:in > > `locate' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > frame.rb:47:in > > `initialize' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > container.rb:1 > > 02:in `new' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > container.rb:1 > > 02:in `frame' > > from (irb):3 > > > BY INDEX : > > irb(main):020:0> ie.frame(:index,1).text_field(:index,1).flash > > WIN32OLERuntimeError: document > > OLE error code:80070005 in <Unknown> > > AccÞs refusÚ. > > > HRESULT error code:0x80020009 > > Une exception s'est produite. > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > frame.rb:52:in > > `method_missing' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > frame.rb:52:in > > `document' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > container.rb:7 > > 38:in `locate_input_element' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > input_elements > > .rb:5:in `locate' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:49: > > in `assert_exists' > > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > > element.rb:239 > > :in `flash' > > from (irb):20 > > irb(main):021:0> > > > Best regards- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general
