need assistance in error

B

Balabaskaran Raghu

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
 
J

Jonas Pfenniger (zimbatm)

Hi Balabaskaran,

it is really hard to tell because I don't use windows, but here are
some steps you can take:

* Did you try to ask your question on the Watir google group ? They
maybe have a better idea of what is happening. See
http://groups.google.com/group/watir-general

* Try upgrading ruby. http://rubyinstaller.org/ is a really wonderful
windows package. Maybe stick with 1.8.7 if you already have some code
base. These kind of errors appear either because you passed the wrong
type of argument or method, or because the API is not compatible with
your current version of ruby.

Hope this help,
zimbatm
 
B

Balabaskaran Raghu

Hi zimbatm,

I haven't posted this question to google watir group, I will post the
questio there and see what turns out.

Thank you for you suggesstion.

Regards,
Bala
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top