Thanks Jason That put me on the right road. I'm not going to say I understand, but when I use http://www.vedere-group.com instead of http://202.36.68.44, everything is copacetic :-) . Like I said, I'm not going to worry about why for now. Perhaps after the Christmas rush. Cheers, Tom
On Dec 11, 5:04 pm, "Jason Trebilcock" <[email protected]> wrote: > Tom, > > If you try to execute each line of your script through irb, what kind of > results are you seeing? I was able to execute your script without issue on > my machine here (Windows 7, Ruby 1.8.6, Watir 1.6.5). Part of me is > wondering if what you're running into is some sort of permissions issue. > > Here's a copy of my irb session (note: I was also able to run things in a > script without issue): > > Microsoft Windows [Version 6.1.7600] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > > C:\Users\jason>irb > irb(main):001:0> require "watir" > => true > irb(main):002:0> browser = Watir::Browser.new > => #<Watir::IE:0x3ae81a4 url="about:blank" title=""> > irb(main):003:0> browser.goto("http://202.36.68.44/") > => 1.683 > irb(main):004:0> puts browser.urlhttp://202.36.68.44/ > => nil > irb(main):005:0> > > > -----Original Message----- > > From: [email protected] [mailto:watir- > > [email protected]] On Behalf Of Tom > > Sent: Thursday, December 10, 2009 7:19 PM > > To: Watir General > > Subject: [wtr-general] method_missing due to bad html? > > > Sorry if this is a repeat, but I did search for this issue and didn't > > find it. I'm a novice at both Ruby and Watir, as well. > > I have a very simple script (part of a much larger script that I'm > > trying to resurrect): > > > require "watir" > > browser = Watir::Browser.new > > browser.goto("http://202.36.68.44/") > > puts browser.url > > > that results in > > > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb: > > 465:in `method_missing': unknown property or method > > `LocationURL' (WIN32OLERuntimeError) > > HRESULT error code:0x800706b5 > > The interface is unknown. from c:/ruby/lib/ruby/gems/1.8/gems/ > > watir-1.6.5/lib/watir/ie-class.rb:465:in `url' > > from mytest.rb:6 > > > Originally I thought there was a compatability issue with IE8. But > > after removing/reinstalling both Ruby and Watir, I still get this > > error. I suspect the html is at issue, as this script obviously will > > work with other sites (tested by going to google). But the HTML > > validates (so I'm told by the developer). Can anybody provide at > > least a direction if not an answer? > > > Cheers, > > Tom > > > -- > > 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 watir-general- > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/watir-general -- 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
