You can enable or disable the complementary module (tools / complementary
module) ...
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6590messageID=19330#19330
This will collect all buttons with value Book in array called
buttons_with_the_same_value.
buttons_with_the_same_value = []
ie.buttons.each {|button| buttons_with_the_same_value button if
button.value == Book}
--
Zeljko Filipin
zeljkofilipin.com
___
On 2/28/07, Jason He [EMAIL PROTECTED] wrote:
I want to pause the testing process at moment and at random time length,
and resume it latterly.
What do you want do to while script is paused? You can pause for random
number of seconds with sleep.
--
Zeljko Filipin
zeljkofilipin.com
yes, that works.
what I did is add all the button on the page, and deleted which ever did not
have the value = box.
but what you have shown is much cleaner and straight forward.
thank you
-
Posted via Jive Forums
if i'm reading this right, you click $ie.button(:value, Log on).click and
it makes a pop up window?
$ie.button(:value, Log on).click_no_wait
$ie.modal_dialog.button(:value, close).click
that might do it. If you have an old version of watir this might not work.
You are looking for some kind of interactive script. I can't imagine its too
hard to do, but I don't have much time to mess around with it. Heres a fun
little script i put together to test out an idea. Maybe it will spark some
ideas.
(note: do not use this for anything, its just for fun. Also,
On 2/28/07, Simba [EMAIL PROTECTED] wrote:
$ie1=$ie.attach( :title, /Log On error /i )
Try replacing this with
IE.attach( :title, /Log On error /i )
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
I also want to download a file.
I combined Mark's code and code from
http://en.wikipedia.org/wiki/Watir(Handling pop-ups)
require watir
require 'watir\contrib\enabled_popup'
ie = Watir::IE.start(http://zeljkofilipin.com/file/;)
ie.link(:index, 1).click_no_wait
hwnd = ie.enabled_popup(5)
if
Try using the ie developer toolbar. I've finally added this to the Watir FAQ:
http://wiki.openqa.org/display/WTR/FAQ#how-to-identify-html-elements
-Charley
-
Posted via Jive Forums
I ran into this issue a while back. Since, then whenever i deal with controls
that are generated dynamically i make the process sleep for one second before
interacting with the control. You have to manually synchronize your script.
It has always worked for me.
Copying and pasting the html
Paul:
I wanted to thank you for your direction. It helped keep me focused.
In the interest of closing this thread the solution I found was already on one
of the 2006 posts by Mark Cain (and I'm sure a few others). I used the
following routine:
def jsAlert(button, waitTime = 3)
w =
you're welcome.
This type of problem can be difficult to deal with. Intertnationalization,
different browser versions and multiple browsers all conspire against us when
we do these types of things.
Paul
- Original Message -
From: John [EMAIL PROTECTED]
Date: Wednesday, February 28,
How to catch keyboard input signal by manual to
pause/resume the testing process, for example using
CTRL+P to pause and CTRL+R to resume.
There's a really easy, low-tech way to do this in
Windows. Any console application can be paused by
selecting part of the console window. Try this:
-Open a
My ruby version is: 1.8.5
My watir version is: 1.5.1.1145
I am having problems accessing a modal_dialog window that pops up in my web
app. I've never accessed one before so I could be doing it all wrong, but I
have researched the forum archives extensively, tried several possible
solutions
Parv ,
Making the process sleep for one second to wait for dynamically
generated controls
does not sound like a reliable process to me.
I thought Watir was handling AJAX stuff.
Thanks to all the Watir guys to let us know what is in Watir specially
developed for AJAX and HTML.
F!
Parv wrote:
sorry forgot some end . . .
class Level
def level1(url1)
array1.length.times do |x|
some code here . . .
array2.length.times do |y|
some code here . . .
end
call level2(urlx)
end
end
def level2(url2)
array3.length.times do |x|
some code here . . .
array4.length.times do |y|
some code here . . .
the exists? method is useful for this.
You can also do something like this
ie.button(:value , 'Click me for ajax').click
until ie.div(:id , 'from_ajax').exists?
sleep 1
# add stuff here so you dont wait for ever
end
I thought that there was also a method like
ie..div(:id ,
Hallo World,
I don't know how to call a def. again and again. . .
Here is what I wrote . .
class Level
def level1(url1)
array1.length.times do |x|
some code here . . .
array2.length.times do |y|
Thank you world
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6558messageID=19379#19379
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Thank you world. I found it out!
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6557messageID=19380#19380
___
Wtr-general mailing list
Wtr-general@rubyforge.org
20 matches
Mail list logo