Looking at the backtrace,it appears that you are using a very old
version of WET. Moreover, looking at the backtrace, I can't make out
as to how your set method in the set_pwd is using an instance of WET's
textfield! The syntax that you are using in the code should actualy be
creating Watir textfield instance. I suspect it is a case of version
mis-matches.
Raghu
Bret Pettichord wrote:
Quang,
You are using WET and it is unclear if perhaps WET has the problem.
Have you asked the WET folks for help?
It is hard to tell what version of Watir you are using. Knowing that
would allow us to match up the error report to the source.
Given these hurdles, my guess is that one of the delay settings
internal to Watir is being set to Nil, probably by WET.
Bret
On 5/24/06, Quang Tran
<[EMAIL PROTECTED]>
wrote:
gui.set_data({
:pwd => "Person"
})
which calls this
def set_data (data)
data.each_pair {|key, value| send("set_#{key}", value)}
end
def set_pwd(pwd)
$ie.frame(:name, RightFrame).text_field(:name,
UserPwdField).set(pwd)
end
From: "Michael
Bolton" <[EMAIL PROTECTED]
>
Reply-To: [email protected]
Subject:
Re: [Wtr-general] TypeError: can't convert NilClass into
timeinterval
Date: Wed, 24 May 2006 22:31:56 -0400
Yes; I think I know what might
be happening. There's probably a problem with your code.
Can we see it, please?
---Michael B.
Hi
If anyone could help. I have a piece of code that simply tries to fill
a text field with some text and when i execute the script i get this
error message
TypeError:
can't convert NilClass into time interval
C:/watir/Tests/../watir.rb:3439:in `sleep'
C:/watir/Tests/../watir.rb:3439:in `doKeyPress'
C:/watir/Tests/../watir.rb:3438:in `each'
C:/watir/Tests/../watir.rb:3438:in `doKeyPress'
C:/watir/Tests/../watir.rb:3404:in `set'
c:/ruby/lib/ruby/gems/1.8/gems/wet-web-0.5-mswin32/./qantom/webobjects/WebEdit.rb:58:in
`set'
C:/watir/Tests/../Tests/webLogin.rb:92:in `set_pwd'
C:/watir/Tests/../Tests/webbLogin.rb:101:in `send'
C:/watir/Tests/../Tests/webLogin.rb:101:in `set_data'
C:/watir/Tests/../Tests/webLogin.rb:101:in `each_pair'
C:/watir/Tests/../Tests/webLogin.rb:101:in `set_data'
the
text field im trying to fill is of type password. Does anyone have any
suggestions as to whats going on?
realestate.com.au:
the biggest address in property
New year, new job – there's more than 100,00 jobs at SEEK
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
|
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general