Re: [Wtr-general] Problem with running tests in a suite

2005-08-30 Thread Bret Pettichord
For IE Controller: http://rubyforge.org/frs/shownotes.php?release_id=241 * Added fix for the RPC intermittent bug that would occur of an instance of ie/iec was created too soon after a previous one was killed. Code change to def initialize(): # creating a new IE instance immediately

RE: [Wtr-general] Key / value pairs.

2005-08-30 Thread Kingsley
That's pretty cool Looks YAML is the way forward there Cheers Kingsley -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Wood Sent: 30 August 2005 00:10 To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Key / value pairs. That's one way to

[Wtr-general] re:cliccking ok in MS explorer

2005-08-30 Thread Nishita Acharya
hi Ian, i came across the same prob. This should help u:- There is a prog called popups_test.rb in unitests include this code frm that prog in ur current prog def startClicker( button , waitTime = 0.5) w = WinClicker.new longName = $ie.dir.gsub("/" , "\\" ) shortName =

Re: [Wtr-general] re:cliccking ok in MS explorer

2005-08-30 Thread Ian Phillips
HI Nishita. I have added the code as it is but it does not find the window. Do I need to change anything the the code you supplied? My test just stops when the popup window appears. Any ideas? Thanks for the help Ian On 8/30/05, Nishita Acharya [EMAIL PROTECTED] wrote: hi Ian, i

[Wtr-general] Connecting to a second window

2005-08-30 Thread Mike Harris
I have just started to use Watir and am trying to connect to a new window using this code, but I fail to goto the link. Can you please give me some advice about why this may be failing. Thanks def test_03_ViewAbout puts Test 3...View About goToSignOnPage()

RE: [Wtr-general] Connecting to a second window

2005-08-30 Thread Mike Harris
The last line put to the command console is attach failed. So I assume that it is the attach that has failed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: 30 August 2005 10:44 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general]

[Wtr-general] Is Watir suitable for Web app (.Net Framework)?

2005-08-30 Thread Hue Mach Dieu
Dear All, I just finished the web automation test use Watir. Now I have new web project (base on .Net framework) may be use C# or ASP.net. I would like to know is Watir suitable for it. Thank you and best regards, Hue Mach ___ Wtr-general mailing

Re: [Wtr-general] Is Watir suitable for Web app (.Net Framework)?

2005-08-30 Thread Dave Burt
Hue Mach Dieu wrote: Dear All, I just finished the web automation test use Watir. Now I have new web project (base on .Net framework) may be use C# or ASP.net. I would like to know is Watir suitable for it. Watir drives IE. It's suitable for testing any application that uses IE as a client.

RE: [Wtr-general] Connecting to a second window

2005-08-30 Thread Zeljko Filipin
Try this $ieAbout = Watir::IE.attach(:title, /About KALIDO MDM/) instead of $ieAbout = IE.attach(:title, /About KALIDO MDM/) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Harris Sent: Tuesday, August 30, 2005 11:53 AM To:

RE: [Wtr-general] Connecting to a second window

2005-08-30 Thread Mike Harris
Thanks.I tried that and still had the same problem. I have just noticed that when I hover over the link with the mouse the path to the page for the second window is displayed in the status bar, but this does not include the name of the file. I am wondering if this is the problem. -Original

Re: [Wtr-general] popups

2005-08-30 Thread Ian Phillips
Thanks Nishita, I have now worked out what I was doing wrong. I was place the startClicker in the wrong place. Thanks for all the help IanOn 8/30/05, Nishita Acharya [EMAIL PROTECTED] wrote: hi, i am attaching a prog that i tried initially for popupsHope it will be of some help

[Wtr-general] RE: Wtr-general Digest, Vol 21, Issue 85

2005-08-30 Thread Subramanian, Kiruthika (IE10)
was scrubbed... Name: not available Type: image/jpeg Size: 2743 bytes Desc: not available Url : http://rubyforge.org/pipermail/wtr-general/attachments/20050830/6399406a/att achment-0001.jpg -- Message: 2 Date: Tue, 30 Aug 2005 09:47:55 +0200 From: Ian Phillips [EMAIL

[Wtr-general] Problems with Assert method

2005-08-30 Thread carl . l . shaulis
Good morning WATIR experts, I apologize for such an elementary post, but I am having difficulty getting the assert methods to function. I believe my issue is fundamental. Is it how I am attempting to use assertions? Is it path or environment related? We have been able to write some really

RE: [Wtr-general] Problems with Assert method

2005-08-30 Thread Zeljko Filipin
And I noticed that you have def Test1 instead of def test1 Zeljko From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian PhillipsSent: Tuesday, August 30, 2005 3:51 PMTo: wtr-general@rubyforge.orgSubject: Re: [Wtr-general] Problems with Assert method Hi.I noticed in your

[Wtr-general] assert PASSED and FAILED

2005-08-30 Thread Ian Phillips
Hi. I have the following assert below. When this code is executed I get both PASSED and FAILED messages reported?? begin assert($ie.contains_text(TestGroup)) $logger.log(test_CreateGroupTest-TestGroup Found-TestGroup Found-PASSED) $logger.log_results(test_CreateGroupTest, TestGroup Found,

[Wtr-general] Re: Wtr-general Digest, Vol 21, Issue 87

2005-08-30 Thread carl . l . shaulis
Thanks for your responses! This code is a modified version of the code in textfields_test.rb, so I believe the syntax is accurate. I changed Test1 to test1, which provides the same result. I also removed the $ from the ie and I get this Loaded suite C:/Apps/PowerSeller Test

RE: [Wtr-general] Re: Wtr-general Digest, Vol 21, Issue 87

2005-08-30 Thread Sean Gallagher
# you were trying to use an undefined local variable in your test method # here is an example that uses an instance variable for IE # the test runs, but fails -- I don't know what you are looking for :-) require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require

Re: [Wtr-general] assert PASSED and FAILED

2005-08-30 Thread Bret Pettichord
You shouldn't use assert in this situation. Instead: if $ie.contains_text(TestGroup) $logger.log(test_CreateGroupTest-TestGroup Found-TestGroup Found-PASSED) $logger.log_results(test_CreateGroupTest, TestGroup Found, TestGroup Found, PASSED) else puts(TEST FAILED. + e.message + \n

Re: [Wtr-general] Re: Wtr-general Digest, Vol 21, Issue 87

2005-08-30 Thread Bret Pettichord
ie won't work. that is a local variable. $ie is global and will be valid in all locations. Bret At 10:54 AM 8/30/2005, you wrote: Thanks for your responses! This code is a modified version of the code in textfields_test.rb, so I believe the syntax is accurate. I changed Test1 to test1,

[Wtr-general] What is the best way to access a div based on :text?

2005-08-30 Thread John Hobbs
Does anyone know of a good way to access a div based on text? I havebeen using the following code: ie.div(:index, 13).click Unfortunately, the index may change and it would be better to accessthe div using :text. To do this, I have changed my code to the following: ie.divs.each { |d|

Re: [Wtr-general] What is the best way to access a div based on :text?

2005-08-30 Thread Raghu Venkataramana
You may want to take a look at how Wet does it. There is no support as yet in Wet for accessing 'div' elements, but there are ways to do it for similar tags like table, row cell. You should be able to use the same technique to say, ie.div(:text, ...) Raghu John Hobbs wrote: Does anyone

[Wtr-general] How to open right-click context menu?

2005-08-30 Thread Mike
Hi, I'm trying to open a right click context menu and then select an item. Via Watir of course. Any pointers? Ordinarily I might be able to figure this out, but in this case view source is turned off, and just getting to this frame was quite an experience, there are treeviews within frames

Re: RE: [Wtr-general] Connecting to a second window

2005-08-30 Thread Paul Rogers
In your test, I dont see you click the link - you seem to also display 'goto link failed' before going to it. Maybe try this begin statusMessage=Click Link aboutlink=$ie.link(:text,About).click statusMessage=attaching to new window

Re: [Wtr-general] How to open right-click context menu?

2005-08-30 Thread Paul Rogers
you can probably do it usint AutoIt, but I dont think there is a way to do it directly into IE through watir Content-Type: multipart/alternative; boundary==_Part_417_993946.1125435757337 --=_Part_417_993946.1125435757337 Content-Type: text/plain; charset=ISO-8859-1

[Wtr-general] Running tests in source code order

2005-08-30 Thread Paul Rogers
Here is some code that runs tests in source code order. I pretty certain Bret posted how to do this ( by overriding the suite method) but he didnt provide any code. This only works if there is one class that does tests in the file, but Im sure someone can figure out how to fix that # #

[Wtr-general] New installer -- I have a reproducible case of the error

2005-08-30 Thread Bret Pettichord
I think i've got it. Really. When you click on the one-click installer (watir-1.4.1.exe) IE gives you a choice: 1. Open 2. Save If you choose Open, the install will fail and the installer directory will be blank and you will get an error about \watir\AutoIt.chm. If you choose Save and then

RE: [Wtr-general] Connecting to a second window

2005-08-30 Thread Jan.Montano
I'm just curious. Is the second window already there upon running the program? if not maybe you could try putting wait(5) before the attach just to be sure. what's the exact error message? and what's the exact title of the page when you view the source? -Original Message- From: [EMAIL

[Wtr-general] browse option

2005-08-30 Thread Nishita Acharya
hello, i have a browse option in one of the forms.I have automated it to pop the 'choose file' window.but i have to choose a file andopen it manually.Can this be automated? The view source contains this form action="" method="POST" enctype="multipart/form-data" input type=FILE size=50

Re: [Wtr-general] browse option

2005-08-30 Thread Raghu Venkataramana
Hi Nishita, You could try the WET add-on. This addon handles the popup files quite well. Thanks Raghu Nishita Acharya wrote: hello, i have a browse option in one of the forms.I have automated it to pop the 'choose file' window.but i have to choose a file and open it manually.Can

Re: [Wtr-general] WAIT statement didn't wait?

2005-08-30 Thread Bret Pettichord
Actually, ie.wait(true) would do the same thing. Here is the code for Frame#wait: def wait(no_sleep = false) @container.wait(no_sleep) end It simply passes the wait call up to the container of the frame (the ie object). What wait does is wait for the page to