Re: [Wtr-general] Modula test execution?

2006-01-24 Thread Paatsch, Bernd
Title: RE: [Wtr-general] Modula test execution? I take it back. It works just fine. I had a typo in my code. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, BerndSent: Tuesday, January 24, 2006 2:06 PMTo: 'wtr-general@rubyforge.org'Subject: Re: [Wtr-general] Modula

Re: [Wtr-general] Modula test execution?

2006-01-24 Thread Paatsch, Bernd
Title: RE: [Wtr-general] Modula test execution? Is it possible to have one global variable across multiple files? 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 'open

Re: [Wtr-general] Tricky checkbox selection

2006-01-24 Thread David.J.Solis
Title: Tricky checkbox selection Sorry guys...it would help if you can see what I'm doing. Here it is. This is the original code that produced the error:   def test_delete_user  # Delete a user   @array_index=0;  @login = Login.new($user, $password, $url, $submit_key)  $ie.link(:tex

Re: [Wtr-general] [(SPAM) - Tagged by Sybari Antispam] Re: close all IE windows

2006-01-24 Thread Bill Agee
On 1/24/06, Richard Lawrence <[EMAIL PROTECTED]> wrote: ... > > Unfortunately, fixing the bug doesn't get rid of the orphan IE window > from the last run of the test suite. And because of the way my team > develops smoke tests for this app, this is a common pattern for a bug in > smoke tests; the s

Re: [Wtr-general] Modula test execution?

2006-01-24 Thread Chris McMahon
> I am new to ruby and watir, so this might be a very trivial question. Welcome! > > Is there a elegant solution to have a modular test script approach? > > I have blocks of code that will be always the same for the web-site I am > going to test, like "login", "search", "logout", etc. So my idea

[Wtr-general] Modula test execution?

2006-01-24 Thread Paatsch, Bernd
Title: Modula test execution? Hello, I am new to ruby and watir, so this might be a very trivial question. Is there a elegant solution to have a modular test script approach? I have blocks of code that will be always the same for the web-site I am going to test, like "login", "search", "

Re: [Wtr-general] [(SPAM) - Tagged by Sybari Antispam] Re: close all IE windows

2006-01-24 Thread Richard Lawrence
Good plan. All I need now are developers who never check in bugs and I won't need to wrestle with smoke tests at all. Unfortunately, fixing the bug doesn't get rid of the orphan IE window from the last run of the test suite. And because of the way my team develops smoke tests for this app, this i

Re: [Wtr-general] close all IE windows

2006-01-24 Thread Michael Bolton
Get the developer to fix his bug? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Lawrence Sent: January 24, 2006 1:49 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] close all IE windows It's not that. It's an address l

Re: [Wtr-general] Tricky checkbox selection

2006-01-24 Thread Michael Bolton
Title: Tricky checkbox selection > To find the last index value, I sorted the array to give the largest number. Knowing this I can delete the last user created. The problem is this: When I try to use any of the built in Array methods other than Sergio example, I get the following error: WI

Re: [Wtr-general] close all IE windows

2006-01-24 Thread Richard Lawrence
It's not that. It's an address like "http://localhost:1505/Web"; (the local address of the VS web server on a developer's machine) that a developer left in a smoke test instead of switching to the correct address for the build server. But since nothing is listening on 1505 on the build server, the

[Wtr-general] File Download

2006-01-24 Thread carl . l . shaulis
Good afternoon: I have two areas where I am currently blocked. The most important concern is dowloading a file. I use Winclicker successfully for handling other pop-ups in our application but when if comes to File Download it does not appear to work. Searching the archives I find reference

Re: [Wtr-general] Tricky checkbox selection

2006-01-24 Thread Sergio Pinon
Title: Tricky checkbox selection David, I would need to see the code to see what is happening. But if you are getting the collection of objects with the same name and then trying to sort that array you can’t. The reason is that the array of controls is really not an array it is unique obje

Re: [Wtr-general] close all IE windows

2006-01-24 Thread Atilla Ozgur
Problem is IE is also works as File Explorer. Attach code does not work with file explorer behaviour. If your IE with invalid web address is a file explorer window you can not do that. As I understand from error, it may not be possible to do that On 1/24/06, Richard Lawrence <[EMAIL PROTECTED]> wr

Re: [Wtr-general] Tricky checkbox selection

2006-01-24 Thread David.J.Solis
Title: Tricky checkbox selection I ran into a similar problem and your suggestion worked great. However, I ran into slightly different problem. In my case, I have a list of users that can be updated and deleted. Every time I add a user, the value is increased by 1. For example,     and so

Re: [Wtr-general] close all IE windows

2006-01-24 Thread Richard Lawrence
I've added a rescue block to deal with the exception, but that doesn't help me attach to windows that currently have an invalid web address. Effectively, what I'm looking for is a way to call attach without it calling wait internally. Is that possible somehow? Thanks, Richard -Original Messa

Re: [Wtr-general] close all IE windows

2006-01-24 Thread Zeljko Filipin
I think this will help. begin # attach to and close all IE windows rescue end I think that Bret Pettichord posted code that does what you need, but I can not find it now. Zeljko 2006/1/24, Richard Lawrence <[EMAIL PROTECTED]>: > > > > I'm trying to attach to and close all IE windows before an

[Wtr-general] close all IE windows

2006-01-24 Thread Richard Lawrence
I’m trying to attach to and close all IE windows before and after my tests to ensure that there are no orphan IE windows. However, if there is an error in one of the open windows (due to an invalid address, for example), the attach calls fails like this:     Watir::Exception::NavigationExc