actually, I would code up a when functionality just like endfix if
or unless ... then you could do
ie.link( :text, Second ).click when ie.link( :text, Second ).exists?
... or something like that.
--jw.
On 6/8/06, Jeff Fry [EMAIL PROTECTED] wrote:
Bret Pettichord wrote:
Specifically, I
On 6/9/06, Jeff Wood [EMAIL PROTECTED] wrote:
actually, I would code up a when functionality just like endfix ifor unless ... then you could doie.link( :text, Second ).click when ie.link( :text, Second ).exists?
... or something like that.I don't know how to do this. Can you provide example code?
ed my impression that you were referring to the "exists?"
method.
If that is not what you were proposing, then there was definitely a
misunderstanding.
Lonny Eachus
=
Subject:
Re: [Wtr-general] Automation annoyingness
Hey Jeff, nice suggestion - very intuitive syntax (not that I would
know how to code it).
Hope you're enjoying yourself. Life is good here.
Jeff F
Jeff Wood wrote:
From: [EMAIL PROTECTED]
Bcc:
Message-ID: [EMAIL PROTECTED]
X-OriginalArrivalTime: 09 Jun 2006 06:35:36.0947 (UTC)
I think it's a good idea. I used to use WinRunner TSL (I much prefer
using Watir by the way!) and it provided similar functionality. What
was different was that there was a global timeout setting that was
used, and the timeout value added to the operation would be added on
to the global timeout
On 6/8/06, Daniel Browne [EMAIL PROTECTED] wrote:
Whatwas different was that there was a global timeout setting that wasused, and the timeout value added to the operation would be added onto the global timeout value.This was quite handy when testingrequirements such as a All web pages must be
Sure.
In WinRunner, there is a global timeout setting that is used for all
scripts. This was set via a menu option rather that programmatically.
In addition to this, in WinRunner TSL, most operations would take a
timeout value as a parameters e.g.
link_click(name, timeout)
On 6/8/06, Daniel Browne [EMAIL PROTECTED] wrote:
Does that make sense?Yes. Thanks for the explanation.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Subject:
Re: [Wtr-general] Automation annoyingness
From:
Jared Quinert [EMAIL PROTECTED]
Date:
Thu, 08 Jun 2006 11:57:45 +1000
Working out what is happening when your script is failing in th
Subject:
Re: [Wtr-general] Automation annoyingness
From:
"Bret Pettichord" [EMAIL PROTECTED]
Date:
Wed, 7 Jun 2006 19:31:47 -0500
On 6/7/06, Lillis, Dara [EMAIL PROTECTED]
wrote:
wh
On 6/8/06, Lonny Eachus [EMAIL PROTECTED] wrote:
After considering this carefully, I would argue that this is a good
idea, but it should really be a different method with a different name.
1) Adding a non-optional parameter to the exists? method call would
break existing code.
2) This
Bret Pettichord wrote:
Specifically, I propose that where you currently do this:
while
not ($ie.link(:text,"Second").exists?)
sleep 0.5
end
$ie.link(:text,"Second").click
You would instead just do this
$ie.link(:text,"Second").click
I have an issue which I suspect can only be solved elegantly by getting
our dev team to make some changes to our application. I suspect that
the issue I'm having would be a general one with *any* tool attempting
to automate a browser (hence my crossposting).
The issue is that there is
] On Behalf Of Jared Quinert
Sent: Wednesday, June 07, 2006 6:14 AM
To: wtr-general@rubyforge.org; [EMAIL PROTECTED]
Subject: [Wtr-general] Automation annoyingness
I have an issue which I suspect can only be solved elegantly by getting
our dev team to make some changes to our application. I suspect
I do not understand the problem. Why not just alter the _javascript_ to
reduce or eliminate the delay? You can make it do anything you want it
to.
Lonny Eachus
=
Subject:
[Wtr-general] Automation annoyingness
On 6/7/06, Lillis, Dara [EMAIL PROTECTED] wrote:
while not ($ie.link(:text,Second).exists?)sleep 0.5end$ie.link(:text,Second).clickThis is what i do as well.I
think the remaining question is whether Watir should do this
automatically. I've actually coded this directly and tested it and it
works.
I'm voting to add this...I know I can add it myself, but it seems like
a number of people are having to do this already.
Jared
I
think the remaining question is whether Watir should do this
automatically. I've actually coded this directly and tested it and it
works. It's only a couple
egain what
efficiency we could.
Lonny Eachus
Subject:
Re: [Wtr-general] Automation annoyingness
From:
"Bret Pettichord" [EMAIL PROTECTED]
Date:
Wed, 7 Jun 2006 19:31:47 -0500
On 6/7/06, Lonny Eachus [EMAIL PROTECTED] wrote:
By automatically, I would hope you mean a kind of wait_for() method,
rather than doing it unseen in the background. At first thought it
seems the latter would be terribly inefficient, especially since it is
only necessary in relatively rare
uld likely be in the position of having
to go into the Watir code to take it back out, in order to regain what
efficiency we could.
Lonny Eachus
Subject:
Re: [Wtr-general] Automation annoyingness
From:
20 matches
Mail list logo