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: Sent: Tuesday, August 08, 2006 7:55 AM Subject: [Wtr-general] How to check for opened IE windows? > Hi, > > I have been trying t

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 opene

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] 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=3381&messageID=9511#9511 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org

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, 'https://www.entertainment.com/images/butto

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 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 work

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] 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   ...en

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

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

[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] 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 http://forums.openqa.org/thread.jspa?threadID=3397&messageI

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

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 fun

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 point

[Wtr-general] undefined method - clickWindowsButton

2006-08-08 Thread Chintakrindi Meghanath
Hi All I am using the "clickWindowsButton" to handle window pop ups in my application. But its throwing error "undefined method". I even inculded winClicker.rb in my script. Can anyone help me out ? Thanks Meghanath ___ Wtr-general mailing list Wtr-ge

[Wtr-general] Divs

2006-08-08 Thread Max Russell
Hi-   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)?         Max Russell test Analyst. InPS   Tel: 01382 223900 Fax: 01382 204488   Visit our Web site at www.

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

2006-08-08 Thread Eric
Hi, I have been trying to create a test for a website. A new window pops out whenever I choose something from a select list. I cannot take control of that new window by url nor by title. So I was wondering if there is another way for Watir to take control of it? And is there a way (a command) f

[Wtr-general] interacting with AJAX drag and drop

2006-08-08 Thread Max Russell
Could anyone point me at a suitable method for interacting with AJAX drag and drop functionality using Watir?   Thanks Max   Max Russell test Analyst. InPS   Tel: 01382 223900 Fax: 01382 204488   Visit our Web site at www.inps.co.uk   The information in this internet email is

[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 the