Re: [Wtr-general] Modula test execution?

2006-01-25 Thread Bret Pettichord
I'm not sure what your question is. Do you need help doing this? Or do you have a method and want to compare yours with others that are possibly more elegant? This can be done very simply. Create your test methods using def. Place them in testexecution.rb. Then put require testexecution in the

Re: [Wtr-general] Modula test execution?

2006-01-25 Thread Bret Pettichord
On 1/24/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Is it possible to have one global variable across multiple files? Yes. In the example below $ie is the global variable in the file open.rb. File: Login: #Includes require 'watir' # the watir controller include Watir require

Re: [Wtr-general] close all IE windows

2006-01-25 Thread Dara Lillis
I'm not sure if this will solve your problem, but I posted some code to the Wiki FAQ (http://watir.net/FAQ#Closing_all_open_IE_windows) a while ago to close all open IE windows: # close all open ie windows all_closed = 'unknown' while (all_closed != 'yes') begin #use a

Re: [Wtr-general] close all IE windows

2006-01-25 Thread Richard Lawrence
My code is based on that code. It's the attach call that fails when the browser is pointed at an invalid page. Thanks, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dara Lillis Sent: Wednesday, January 25, 2006 10:01 AM To:

[Wtr-general] Tab Click

2006-01-25 Thread Chintakrindi Meghanath
Hi All My web application contains two tabs in one of the transaction "Detail" and "Contents" After entering the data in the Detail page, using will be saving that record and clicks on "Contents". I am trying to make a script for that Can anyone help me out, how to click on "Contents".

Re: [Wtr-general] Tab Click

2006-01-25 Thread Bret Pettichord
ie.div(:id, 'LineTab').clickOn 1/25/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi All My web application contains two tabs in one of the transaction Detail and Contents After entering the data in the Detail page, using will be saving that record and clicks on Contents. I am

Re: [Wtr-general] Tab Click

2006-01-25 Thread Chintakrindi Meghanath
Hi I aleady tried with that option , but its not working Thanks Meghanath -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Bret PettichordSent: Wednesday, January 25, 2006 2:10 PMTo: wtr-general@rubyforge.orgSubject: Re: [Wtr-general]

[Wtr-general] Question on clicking on link

2006-01-25 Thread Chris Schmechel
Hi, I'm trying toautomateclicking on the following link (ie. image on my HTML page): a href="" src="" width=162 height=35 border=0/a br which then takes me to thesubsequent download page. I've tried the following without any luck: ie.link(:url, download.html).click Any suggestions? Thanks in

Re: [Wtr-general] Question on clicking on link

2006-01-25 Thread Bret Pettichord
What error do you get?On 1/25/06, Chris Schmechel [EMAIL PROTECTED] wrote: Hi, I'm trying toautomateclicking on the following link (ie. image on my HTML page): a href="" src="" width=162 height=35 border=0/a br which then takes me to thesubsequent download page. I've tried the following without

Re: [Wtr-general] Tab Click

2006-01-25 Thread Bret Pettichord
How 'bout this: ie.div(:id, 'LineTab').cell(:text, 'Contents').click(If this doesn't work, please describe what it actually does. Error?)BretOn 1/25/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Hi I aleady tried with that option , but its not working Thanks Meghanath

Re: [Wtr-general] Question on clicking on link

2006-01-25 Thread Chris Schmechel
Thanks for the reply, it got me thinking. I found the problem: ie.link(:url, download.html).click needs to become: ie.link(:url, /download.html/).click and it works! Now I'm running into another problem. Due to my browser security settings -- I'm getting the following ActiveX control upon

Re: [Wtr-general] close all IE windows

2006-01-25 Thread Terry Peppers
Richard - With regard to closing all IE windows, something I unearthed this week is that sometimes Watir is a little too quick. What do I mean? Well, when some of the windows close in our sites, the application throws a 'Are you sure you want to leave?' window. I tried a bunch of different ways to

[Wtr-general] Fwd: close all IE windows

2006-01-25 Thread Bret Pettichord
On 1/24/06, Richard Lawrence [EMAIL PROTECTED] wrote: Is there a way I can disable error checking on these attach calls? I don't care if the content of the window is good; I just want to close it. This might work: class BetterIE Watir::IE def add_checker; end end ie =

[Wtr-general] Another JavaScript Question

2006-01-25 Thread David Solis
All,I've been trying desperately for over week to figure out how to click on _javascript_ button to no avail. I have tried just about everybody's suggestions. Mark Cain's solution posted last weeklooked very promising, but can't get it to work. Here is the code that contains the buttons

Re: [Wtr-general] Tricky checkbox selection

2006-01-25 Thread Michael Bolton
Title: Tricky checkbox selection From the fragmentbelow, it appears that you're missing a closing brace: puts $index.each{|i| print i.value, "\n"puts $index.sort# Error occurs here I'm also confused by the puts at the beginning of the first line quoted above when there's a print within