Re: [Wtr-general] Watir + IE dev toolbar

2007-02-28 Thread Maisonnette
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

Re: [Wtr-general] add all Buttons id which has the same value to array

2007-02-28 Thread Željko Filipin
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 ___

Re: [Wtr-general] Can Watir be paused resumed manually whenrunning test cases?

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] add all Buttons id which has the same value to

2007-02-28 Thread sathees
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

Re: [Wtr-general] PopUp window problem

2007-02-28 Thread John Lolis
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.

Re: [Wtr-general] Can Watir be paused resumed manually

2007-02-28 Thread John Lolis
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,

Re: [Wtr-general] PopUp window problem

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] how to handle the file download window !

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] Button identification

2007-02-28 Thread Charley Baker
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

Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread Parv
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

Re: [Wtr-general] How to handle a text_field popup

2007-02-28 Thread John
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 =

Re: [Wtr-general] How to handle a text_field popup

2007-02-28 Thread Paul Rogers
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,

Re: [Wtr-general] Can Watir be paused resumed manually when running

2007-02-28 Thread John Fitisoff
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

[Wtr-general] Problems accessing modal_dialog from ruby v. 1.8.5

2007-02-28 Thread Lauren
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

Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread [EMAIL PROTECTED]
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:

Re: [Wtr-general] Calling Definition again!

2007-02-28 Thread sathees
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 . . .

Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread Paul Rogers
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 ,

[Wtr-general] Calling Definition again!

2007-02-28 Thread sathees
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|

Re: [Wtr-general] Why this error and how to supress it?

2007-02-28 Thread sathees
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

Re: [Wtr-general] Fetching variable results with in Div

2007-02-28 Thread sathees
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