Hi,
First and foremost I must admint that, I am completely new to watir and
to ruby. I am trying to take my first steps in attempting to automate
one our our testing application. And i am stuck with the error as I
execute the script. can some one help…
I am using follow
D:>ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
D:>gem -v
0.9.2
when executing
require ‘rubygems’
require ‘watir’
puts Watir::IE::VERSION
ruby watir_version.rb
1.4.1
Exit code: 0
require ‘rubygems’ # the watir controller
require ‘watir’ # the watir controller
require ‘win32ole’ # the watir controller
set a variable
$test_site = ‘http://portaltest/’
open the IE browser
$ie = Watir::IE.new
print some comments
puts “#Beginning of test: Test Portal”
puts "Step 1: go to the test site: " + $test_site
$ie.goto($test_site)
output:
#Beginning of test: Test Portal
Step 1: go to the test site: http://portaltest/
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1136:in set_defaults': undefined method
frames’ for nil:NilClass (NoMethodError)
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in call' from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1436:in
run_error_checks’
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in each' from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1435:in
run_error_checks’
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1419:in wait' from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1254:in
goto’
from Newscript.rb:17
and some time with different script am getting following error
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1237:in method_missing': document (WIN32OLERuntimeError) OLE error code:80004005 in <Unknown> <No Description> HRESULT error code:0x80020009 Exception occurred. from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1237:in
title’
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1312:in
set_window_state' from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1291:in
maximize’
from fina1l.rb:17:in `basic_auth’
from fina1l.rb:115