[Wtr-general] Invoking Big Number Of Tests

2006-08-08 Thread dzen
Hi all, i have mass of ruby tests placed in some dirs. i have and a main ruby test from where i requre all of the other tests. but when i start the main test, after it finish i have a huge quantity of browsers opened. i cant put close_browser() method at the end of the tests because some of

Re: [Wtr-general] interacting with AJAX drag and drop

2006-08-08 Thread Paul Rogers
I dont think there is anything in watir to do it at the moment. I started looking into this, but the functionality was dropped from the app I was testing. It may come back again, in which case I will once again take a look at adding this functionality into watir. Paul Could anyone

Re: [Wtr-general] interacting with AJAX drag and drop

2006-08-08 Thread Chris McMahon
On 8/8/06, Paul Rogers [EMAIL PROTECTED] wrote: I dont think there is anything in watir to do it at the moment. I started looking into this, but the functionality was dropped from the app I was testing. It may come back again, in which case I will once again take a look at adding this

Re: [Wtr-general] undefined method - clickWindowsButton

2006-08-08 Thread Charley Baker
Hi Chintakrindi, You should be able to do this by creating a new WinClicker object: wc = WinClicker.new wc.clickWindowsButton(Microsoft Internet Explorer, OK)-Charley On 8/8/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi AllI am using the clickWindowsButton to handle window pop ups in my

Re: [Wtr-general] interacting with AJAX drag and drop

2006-08-08 Thread Bach Le
Max, check out this link http://zbarzone.blogspot.com/2006/05/drag-and-drop-with-watir.html -Bach Message was edited by: beefandbachle - Posted via Jive Forums

[Wtr-general] Incrementing object names

2006-08-08 Thread aidy rutter
Hi, This is an example of a file that I read in. However the addresses entered could be 1 upto 7 lines. *** TESTID_10 Address: 30 Choyce Close Atherstone Warwickshire Country: GB Search-Results: 20 ***

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Rand Thacker
If there's only one form on the page, isn't:ie.button(:src, 'https://www.entertainment.com/images/button_continue.gif').clickenough to click the button? Also, there was some discussion about images versus buttons. I can't recall if they were trying to reference images that were not buttons, but

Re: [Wtr-general] Incrementing object names

2006-08-08 Thread Chris McMahon
On 8/8/06, aidy rutter [EMAIL PROTECTED] wrote: def enter_data x=0 read_in_test_data.each { |x| line = x.chomp next if line.upcase == 'ADDRESS:' object_name = 'A' #{11+x} I think you want something like object_name = 'A' + '11' + x.to_s = A111 either that

Re: [Wtr-general] Incrementing object names

2006-08-08 Thread Paul Carvalho
I use similar mixed variables in my scripts but I use the 'succ' method rather than trying to manually figure it out.For your sample code below, I might rework it to something like:def enter_data x = 0 ; object_name = 'A10' read_in_test_data... ... object_name.succ! p object_name ...endHope this

Re: [Wtr-general] Incrementing object names

2006-08-08 Thread aidy rutter
On 8/8/06, Chris McMahon [EMAIL PROTECTED] wrote: x = 11x = x + 1object_name = 'A' + x.to_s= A12 Thanks Chris, works like a treat aidy ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Bach Le
Rand, ie.button(:src, 'https://www.entertainment.com/images/button_continue.gif').click should be enough to click the button, however, for consistency reasons there shouldn't be a reason why it works without the form specified when it is in fact a form element. As I noted before, it does

Re: [Wtr-general] problem in opening a file

2006-08-08 Thread Charley Baker
Hi Vikash, You are several ways to do this depending on your particular needs, here's one, add your data directory to your load path in the script you're using: $LOAD_PATH.unshift File.join(File.dirname(__FILE__),'..','data') This assumes your data directory is one up from the file you're trying

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Charley Baker
It's a bug in the Watir codebase. As you pointed out, there is a workaround, but it should work with the existing code. It's been reported as a jira issue and we're working on it. -Charley On 8/8/06, Bach Le [EMAIL PROTECTED] wrote: Rand,ie.button(:src,

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Bach Le
Thanks Charley. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3381messageID=9511#9511 ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Divs

2006-08-08 Thread Bret Pettichord
ie.divs.show using 1.5, you can use name, id, text, class pretty much anything. Max Russell wrote: A few more questions regarding Ajax drag and rop- Is there a command to show all divs in a particular page? What can they be accessed through, if not name? (ID)?

Re: [Wtr-general] Invoking Big Number Of Tests

2006-08-08 Thread Bret Pettichord
use 1.5: at_exit { close_browser() } or at_exit { IE.close_all } dzen wrote: i have mass of ruby tests placed in some dirs. i have and a main ruby test from where i requre all of the other tests. but when i start the main test, after it finish i have a huge quantity of browsers opened.

Re: [Wtr-general] How to check for opened IE windows?

2006-08-08 Thread Paul Rogers
some time back I posted a show_windows method I have no idea when it might have been though. Paul - Original Message - From: Eric [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Tuesday, August 08, 2006 7:55 AM Subject: [Wtr-general] How to check for opened IE windows? Hi, I