Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Zeljko Filipin
On 6/7/06, Bret Pettichord [EMAIL PROTECTED] wrote: I am planning to add multiple attribute support to Watir. +1 In effect, set of attributes would have an :index of 1 unless something else werespecified.Are you going to make :index 0 based? I remember there was a discussion about it.

[Wtr-general] Automation annoyingness

2006-06-07 Thread Jared Quinert
I have an issue which I suspect can only be solved elegantly by getting our dev team to make some changes to our application. I suspect that the issue I'm having would be a general one with *any* tool attempting to automate a browser (hence my crossposting). The issue is that there is

[Wtr-general] clicking a link in a javascipt array

2006-06-07 Thread Adrian Rutter
Hi, I have a javascript array in a table. source TD class=tnt-table-actionA class=tnt-table-action href=javascript:PC_7_0_G1_selectEmployee('0', 'amend')Amend/A/TD TD class=tnt-table-actionA class=tnt-table-action href=javascript:PC_7_0_G1_selectEmployee('1', 'amend')Amend/A/TD TD

Re: [Wtr-general] clicking a link in a javascipt array

2006-06-07 Thread Zeljko Filipin
This will show you links at your page:ie.show_linksindex name id hreftext/src1 _javascript_:PC_7_0_G1_selectEmployee('0',%20'amend') Amend 2 _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend') Amend3 _javascript_:PC_7_0_G1_selectEmployee('2',%20'amend') AmendThis will click

Re: [Wtr-general] clicking a link in a javascipt array

2006-06-07 Thread Zeljko Filipin
That would actually flash the second link. :)This will click the second link:ie.link(:url, _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend')).clickOn 6/7/06, Zeljko Filipin [EMAIL PROTECTED] wrote: ie.link(:url, _javascript_:PC_7_0_G1_selectEmployee('1',%20'amend')).flash

Re: [Wtr-general] clicking a link in a javascipt array - further info

2006-06-07 Thread Adrian Rutter
I can click the fist link quite happily with this: $ie.link(:text, 'Amend').click Thanks Aidy --- This message and any attachment are confidential and may be privileged or otherwise

Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Boyt, Darrel
I agree with Bret Paul ... and thanks, Bret, for adding this functionality! Darrel Boyt Systems Analyst Anteon Corporation Montgomery, Alabama - Original Message - From: Paul Rogers [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Tue, 06 Jun 2006 22:13:39 -0600 Subject:

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-07 Thread Rodrigo Julian Martin
Hello Bret, ie.down_load_time is a Watir 1.5 feature, right? Im afraid I still have to use the 1.4.1 release (because of WET compatibility for example). Is there a way I could manage this with 1.4.1? My code is like this: [code] $browser.links.each do |link|

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Lillis, Dara
This is not an unusually complex problem. Testing real web applications, you are likely to run into many similar (and more difficult) issues. Is your wait hack a simple wait (i.e. a specified number of seconds) or does it have some logic to it? Below is a simple example of a wait that will wait

Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Bret Pettichord
On 6/7/06, Zeljko Filipin [EMAIL PROTECTED] wrote: Are you going to make :index 0 based? I remember there was a discussion about it. I think it would be nice to offer the option of 0 or 1 based indexing. The 1 based indexing is particularly awkward when working with tables. But i have no

Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Lillis, Dara
Disclaimer: I am not familiar with the background discussions so please let me know if I'm completely missing the point. but... it would make sense to me to aim to have everything default to 0-based indexing. Ruby has 0-based indexing (for arrays at least). I forget enough things

[Wtr-general] Test::Unit Reports?

2006-06-07 Thread Adrian Rutter
Hi, Is there anything about that sits on top of Test::Unit to produce - for example - html reports, or would it be better to log to XML, then XSLT it? Thank You Aidy --- This message

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Charley Baker
Chris and I were just talking about this yesterday: http://rubyforge.org/projects/test-report/Reports in html or xml. -Charley On 6/7/06, Adrian Rutter [EMAIL PROTECTED] wrote: Hi,Is there anything about that sits on top of Test::Unit to produce - forexample - html reports, or would it be better

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Lillis, Dara
Indeed there is. Reporter http://rubyforge.org/projects/test-report/ Gives you junit-like output. I think you need to require 'stringio' for it to work, but aside from that it's pretty straightforwad. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Chris McMahon
I think you need to require 'stringio' for it to work, but aside from that it's pretty straightforwad. Alex fixed this in 'trunk'. -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] clicking a link in a javascipt array - further info

2006-06-07 Thread Daniel Browne
There is always the index option (to click the 3rd Amend) too: ie.link(:index, 3).click Cheers, Daniel. On 07/06/06, Adrian Rutter [EMAIL PROTECTED] wrote: I can click the fist link quite happily with this: $ie.link(:text, 'Amend').click Thanks Aidy

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-07 Thread Daniel Browne
If you knew of some text that was always present in the html of a loaded page, but not present when one of the error pages is displayed you could use: ie.html.match(/some_text_that_is_always_present/) I imagine there is a better way to do it though. Cheers, Daniel. On 07/06/06, Rodrigo

Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows

2006-06-07 Thread Lonny Eachus
You can disbelieve all you like Bret, but this is the behavior we observed. I believe my own eyes over your protestations. There could be some semantic confusion here over scope, what is meant by a "session" . . . what is meant by a "code run" . . . which is partly what this thread was about.

[Wtr-general] Automation annoyingness

2006-06-07 Thread Lonny Eachus
I do not understand the problem. Why not just alter the _javascript_ to reduce or eliminate the delay? You can make it do anything you want it to. Lonny Eachus = Subject: [Wtr-general] Automation annoyingness

Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows

2006-06-07 Thread Bret Pettichord
On 6/7/06, Lonny Eachus [EMAIL PROTECTED] wrote: We had a server set up using multiple Mongrels with a lighttpd front end. A server will wait for an http request to come in, and fire off our Rails application. The program exits when done (i.e., the controller .rb runs to completion, no

Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows

2006-06-07 Thread Michael Bolton
I see three ways this could happen, there may be more: (1) The variable "global_foo" is truly "global" on that server from the moment it is instantiated, and remains in memory even when there is no "running code". This is contrary to the way I understood globals to function . . . in which

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-07 Thread Bret Pettichord
On 6/7/06, Rodrigo Julian Martin [EMAIL PROTECTED] wrote: Hello Bret, ie.down_load_time is a Watir 1.5 feature, right?No. It's been in Watir for a long time. It is in 1.4.1. Well, I need a way of check that each link that was clicked have loaded "completely" a page, else I need to

[Wtr-general] Uses for Watir (was: Re: BUG: New IE windows share session state with existingopen windows)

2006-06-07 Thread Lonny Eachus
I can see that we were coming from different perspectives. But please keep in mind that not only the functionality but also the "scope" (pardon the word) of Watir may be expanding . . . I know of several people at least who use it for things other than testing. Our application DOES use Watir,

Re: [Wtr-general] Uses for Watir (was: Re: BUG: New IE windows share session state with existingopen windows)

2006-06-07 Thread Charley Baker
Hey Lonny, Globals in general are best avoided, there are cases where it makes sense, but having been assigned single 40+ page perl scripts and various other projects where just about every variable is a global will pretty much drive that one home. Best to use instance variables when possible,

Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows

2006-06-07 Thread Lonny Eachus
Please do not take this comment the wrong way, but this is the second time someone has mentioned -- to me -- that this might be an "inappropriate" topic for this forum. Please read the subject line again. Someone asked about "session states" being "shared" . . . in the context of Watir. I

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Bret Pettichord
On 6/7/06, Lillis, Dara [EMAIL PROTECTED] wrote: while not ($ie.link(:text,Second).exists?)sleep 0.5end$ie.link(:text,Second).clickThis is what i do as well.I think the remaining question is whether Watir should do this automatically. I've actually coded this directly and tested it and it works.

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Jared Quinert
I'm voting to add this...I know I can add it myself, but it seems like a number of people are having to do this already. Jared I think the remaining question is whether Watir should do this automatically. I've actually coded this directly and tested it and it works. It's only a couple

Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Lonny Eachus
For what it's worth, I think that is a great idea. Lonny Eachus == Subject: Re: [Wtr-general] Proposal for supporting multiple attributes From: "Bret Pettichord" [EMAIL PROTECTED]

Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 16

2006-06-07 Thread Lonny Eachus
By automatically, I would hope you mean a kind of "wait_for()" method, rather than doing it unseen in the background. At first thought it seems the latter would be terribly inefficient, especially since it is only necessary in relatively rare cases. Time and efficiency are definitely a

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Lonny Eachus
Apologies for the post with the wrong subject line . . . By automatically, I would hope you mean a kind of "wait_for()" method, rather than doing it unseen in the background. At first thought it seems the latter would be terribly inefficient, especially since it is only necessary in

Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 16

2006-06-07 Thread Lonny Eachus
I thought you meant there was an explicit delay. While I do not doubt what you say, it seems strange that even a mess of _javascript_ should take very long. On the other hand, in recent months I have seen some _javascript_ that was, indeed, a real mess. Can you be more specific about what it

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Bret Pettichord
On 6/7/06, Lonny Eachus [EMAIL PROTECTED] wrote: By automatically, I would hope you mean a kind of wait_for() method, rather than doing it unseen in the background. At first thought it seems the latter would be terribly inefficient, especially since it is only necessary in relatively rare

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Jared Quinert
Working out what is happening when your script is failing in this instance was time-consuming and non-obvious. I assume that Watir's audience includes people who may not figure out what is going on when their script appears to randomly fail. It makes sense to me to prevent this problem if it

[Wtr-general] Please -- No Digest Headers in your posts!

2006-06-07 Thread Bret Pettichord
When you reply to a digest message like this:Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 16Please change the header, preferably to match that of the post you are replying to. Including subject lines like this make threads nearly impossible to track.Bret