Ahhh...I didn't realize that Ruby 1.9.2 + Watir 2.x was ready for testing. I'll have to upgrade a VM and take a look as well.
Sorry for getting off topic and not providing a solution to your issue ;) orde On Sep 16, 11:03 am, George Wiley <george.wi...@gmail.com> wrote: > I read in this group that Ruby 1.9.2 and Watir 2.x was ready to test. > I thought I would run my scripts through and see what I get. For the > most part with some changes I have been able to run many scripts > successfully. This happens to be a problem I can't figure out. > > On Sep 16, 12:47 pm, orde <ohil...@gmail.com> wrote: > > > > > > > > > Does watir 2.x support ruby 1.9.x? http://watir.com/installation/ > > still recommends 1.8.6 or 1.8.7 (although the documentation might be > > slightly out of date). > > > orde > > > On Sep 16, 7:48 am, George Wiley <george.wi...@gmail.com> wrote: > > > > The code below works fine with Win7, IE8, Ruby 1.8.6 and Watir 1.6.2 > > > for accessing an 'Internet Explorer_TridentDlgFrame' modal dialog. > > > This code gives the error below when I upgrade to Ruby 1.9.2 and Watir > > > 2.0.2. It does not appear to be a timing issue because I have tried > > > sleeps and Watir::Wait.until without success. > > > > I can find the dialog but I cannot access the HTML code. I can also > > > find the dialog using RAutomation directly but I have the same > > > problem. I can't see the HTML to access the controls on the modal > > > dialog. > > > > The modal dialog has a text_field a select_list and 2 buttons all > > > within a frame. > > > > Is there another tool I should be using with these newer versions of > > > Ruby and Watir to access the HTML in a modal dialog? > > > > Thank you for your help. > > > ************************************************************* > > > require 'watir' > > > > ie = Watir::IE.attach(:title, /my title/i) > > > > btnOK = ie.button(:id, 'OK').click_no_wait() # this opens the > > > modal dialog > > > > iemod = nil > > > > 50.times do > > > begin > > > iemod = ie.modal_dialog # this does find the dialog > > > puts "** dialog found **" > > > break > > > rescue > > > puts "** dialog not found **" > > > sleep(1) > > > end > > > end > > > > sleep(20) > > > frame = iemod.frame(:name, 'Frame') > > > modSelectList = frame.select_list(:name, 'Select_List') > > > puts modSelectList.exists? > > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/lib/ > > > watir/modal_dialog.rb:32:in `locate': undefined method > > > `connect_unknown' for WIN32OLE:Class (NoMethodError) > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/modal_dialog.rb:36:in `document' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:7:in `document' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:147:in `each_element' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:159:in `block in each' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:158:in `each' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:158:in `each' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:173:in `locate' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/frame.rb:10:in `locate' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/element.rb:75:in `assert_exists' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/frame.rb:35:in `document' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/frame.rb:24:in `__ole_inner_elements' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:200:in `each_element' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:220:in `each' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/locator.rb:213:in `locate' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/input_elements.rb:6:in `locate' > > > from > > > C:/programs/Ruby-192-p290/lib/ruby/gems/1.9.1/gems/watir-2.0.2/ > > > lib/watir/element.rb:391:in `exists?' > > > from watir202test.rb:39:in `<main>' > > > ** dialog found **- Hide quoted text - > > > - Show quoted text - -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com