Update:  I guess require 'rubygems' => false, just means it's already
loaded, so it's not the issus..

C:\Users\r622878>cd ../../ruby*/bin

C:\Ruby193\bin>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.3
  - RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby193/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: C:/Ruby193/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby193/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby193/lib/ruby/gems/1.9.1
     - F:/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/

C:\Ruby193\bin>


On Mar 14, 7:34 am, Anthony Coley <anthony.co...@gmail.com> wrote:
> Hi,
>
> Thanks for your help!
>
> Here are my findings with your suggestions:
>
> C:\Ruby193\bin>irb
> irb(main):001:0> require 'rubygems'
> => false
> irb(main):002:0> require 'watir'
> => true
> irb(main):003:0> browser = Watir::Browser.new
> => #<Watir::IE:0x..fd682cf8 url="about:blank" title="">
> <5/my_internal_webisite_goes_here...."
> => 0.015598
> irb(main):005:0> browser.text_field(:name, "usr").set("my_login")
> NoMethodError: unknown property or method: `document'
>     HRESULT error code:0x800706b5
>       The interface is unknown.
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/ie-class.rb:458:in `method_missing'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/ie-class.rb:458:in `document'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/container.rb:69:in `__ole_inner_elements'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/locator.rb:204:in `each_element'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/locator.rb:229:in `each'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/locator.rb:217:in `locate'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/input_elements.rb:14:in `locate'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/element.rb:325:in `assert_exists'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/element.rb:474:in `perform_action'
>         from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.5.0/
> lib/watir-c
> lassic/input_elements.rb:244:in `set'
>         from (irb):5
>         from C:/Ruby193/bin/irb:12:in `<main>'
> irb(main):006:0>
>
> NOTE:
> I'm sure this isn't related because this step is working, but my
> browser.goto URL, I used the following syntax in IRB, with the correct
> URL of course, and it left trimmed about 70 chars off the IRB
> command .  My entire browser.goto line is about is about 140 chars
> long.     Again, this is probably normal, I just wanted you to know.
> browser.goto "https://my_internal_webisite_goes_here....";
>
> Also, notice require 'rubygems' => false.  Could this be the problem?
>
> Error:
> irb(main):005:0> browser.text_field(:name, "usr").set("Administrator")
> NoMethodError: unknown property or method: `document'
>     HRESULT error code:0x800706b5
>       The interface is unknown.
>
> On Mar 13, 2:53 pm, Chuck van der Linden <cvanderlin...@climate.com>
> wrote:
>
>
>
> > it might be being rendered by some client side javascript, and FF or Chrome
> > might be just enough faster than IE that they have created the element when
> > the script gets to that point, but IE has not.
>
> > I'd suggest two things
>
> > 1 try running those few lines of your script manually (you can cut and
> > paste) one at a time in IRB.  If it works then you can be pretty sure it's
> > a timing issue, if it does not, have another look at the HTML, but be sure
> > you do it in IE or using the IE developer tools.  (sometimes sites can send
> > different html depending on what browser requested it)
>
> > 2) presuming that IRB worked, try decorating that line with .when_present
>
> >   browser.text_field(:name, "usr").when_present.set("my_login")
>
> > On Wednesday, March 13, 2013 10:22:06 AM UTC-7, Željko Filipin wrote:
>
> > > On Wed, Mar 13, 2013 at 6:21 PM, Anthony Coley 
> > > <anthon...@gmail.com<javascript:>
> > > > wrote:
>
> > >> Yes, I have the element, see attached element.jpg.
>
> > > It could be there eventually, but not when the script looks for it.
>
> > > Željko- Hide quoted text -
>
> > - Show quoted text -- 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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to