Re: [Wtr-general] how to access icon's button

2006-11-16 Thread Daniel Browne
What if you look at the HTML to determine the frame name? Cheers, Daniel. On 16/11/06, Nie Guoqiang [EMAIL PROTECTED] wrote: I get only there are 6 frames when executing ie.show_frames. So I think it must be of the watir version that causes my problem. I am very sorry, and thanks to you all

Re: [Wtr-general] how to access icon's button

2006-11-16 Thread Daniel Browne
... and use the text that you have instead of frame_name_here to specify the frame as described earlier in the mail thread. Cheers, Daniel. On 16/11/06, Daniel Browne [EMAIL PROTECTED] wrote: What if you look at the HTML to determine the frame name? Cheers, Daniel. On 16/11

Re: [Wtr-general] how to access icon's button

2006-11-15 Thread Daniel Browne
1. First of all do: ie.show_frames List will give you a list of frames. 2. Then for each of the frame names returned in step 1 do: ie.frame(the_name_of_a_frame).show_images This will give you lists of images in each frame (you have to replace the_name_of_a_frame with the

Re: [Wtr-general] Outlook Access

2006-10-12 Thread Daniel Browne
Hi, Can you give a bit more detail on what exactly you mean by outlook access? To you mean access to an Exchange server? Thanks. Cheers, Daniel. On 12/10/06, Michael Ehrich [EMAIL PROTECTED] wrote: hi, i found some pps files about watir and they said outlook access is possible. i

Re: [Wtr-general] Joing two variables

2006-10-04 Thread Daniel Browne
What you have done should work. Did you give it a try? Using irb as shown below is often a good way to experiment with syntax to make sure it does as you expect. Thanks. Cheers, Daniel. irb(main):031:0 base_url = 'http://www.google.com/' = http://www.google.com/; irb(main):032:0 puts base_url

Re: [Wtr-general] regex url

2006-09-28 Thread Daniel Browne
To match the text you have supplied, try the following regular expression: /javascript:.*selectTerritory\('1',%20'select'\)/ You need to escape the parenthesis using backslashes. I hope this helps. Cheers, Daniel. On 28/09/06, Adrian Lewis [EMAIL PROTECTED] wrote: Hi, I am having

Re: [Wtr-general] Need help populating a field array using variables

2006-07-06 Thread Daniel Browne
Frank, I was wondering if you could tell me exactly what the # operator does in this case? I have had a look at the ruby documentation but cannot find an explanation. Thanks. Cheers, Daniel. On 29/06/06, Legarreta, Frank [EMAIL PROTECTED] wrote: Thank you all so much!

Re: [Wtr-general] Need help populating a field array using variables

2006-07-06 Thread Daniel Browne
: On 7/6/06, Daniel Browne [EMAIL PROTECTED] wrote: I was wondering if you could tell me exactly what the # operator does in this case? I have had a look at the ruby documentation but cannot find an explanation. Thanks. The name for this feature is string interpolation. You might be able

Re: [Wtr-general] [question] Finding a Link with 2 regularexpressions?

2006-07-06 Thread Daniel Browne
What about somehting like: if (browser.link(:url, /#{regExp1}.*#{regExp2}/).exists? || browser.link(:url, /#{regExp2}.*#{regExp1}/).exists?) ... end Cheers, Daniel. On 06/07/06, Rodrigo Julian Martin [EMAIL PROTECTED] wrote: Thanks Ravi, it worked! But I'm having another problem right

Re: [Wtr-general] Integrating Watir with SQL Server 2000

2006-06-20 Thread Daniel Browne
I don't have experience with Ruby and SQL Server together, however I imagine the people who do have such experience will be more willing to respond if you tell them about what you have tried and the errors/issues encountered. Thanks. Cheers, Daniel. On 20/06/06, jet ibaÿf1ez [EMAIL

Re: [Wtr-general] nested frames

2006-06-20 Thread Daniel Browne
Or you can use something along the lines of: ie.frame(:index, 1).show_frames This will show all frames within the top level frame with index 1. The frame name could obviously be used instead of frame index. Cheers, Daniel. On 19/06/06, Chris McMahon [EMAIL PROTECTED] wrote:

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Daniel Browne
Hi, Thanks for sharing this info with us. I have already completed some work in automating operations in ClearQuest (IBM's defect tracking system) using Watir and I'm now looking into extending this work to keep two different defect tracking systems in sync. Yes it's a horrible position to be

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Daniel Browne
. On 6/14/06, Daniel Browne [EMAIL PROTECTED] wrote: I take it has the ability to only download new mail? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Automation annoyingness

2006-06-08 Thread Daniel Browne
I think it's a good idea. I used to use WinRunner TSL (I much prefer using Watir by the way!) and it provided similar functionality. What was different was that there was a global timeout setting that was used, and the timeout value added to the operation would be added on to the global timeout

Re: [Wtr-general] Automation annoyingness

2006-06-08 Thread Daniel Browne
at an HTTP level, however people often like to see how a web sites respond to simulated mouse clicks rather than the HTTP requests behind them. Does that make sense? Cheers, Daniel. On 08/06/06, Bret Pettichord [EMAIL PROTECTED] wrote: On 6/8/06, Daniel Browne [EMAIL PROTECTED] wrote: What

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] Need Help redirecting the Test Unit output

2006-04-25 Thread Daniel Browne
What happens if you do: ruby iostring_test.rb some_file.log Or to redirect STDOUT and SDTERR to the file try: ruby iostring_test.rb some_file.log 21 Cheers, Daniel. On 25/04/06, Paul Carvalho [EMAIL PROTECTED] wrote: Hi there, I'm trying to capture the Test Unit output to a file

[Wtr-general] Yet another popup (IE window, not modal) issue

2006-04-11 Thread Daniel Browne
Hi, Apologies for another popup question however I've hunted the mail archives and cannot find a solution to this. When I click a link in a web page, IE pops up a new window. This is another IE window but the type that has no space to enter a URL etc. It is not a modal window. Using

Re: [Wtr-general] Yet another popup (IE window, not modal) issue

2006-04-11 Thread Daniel Browne
In fact I did see the thread with subject Pointer(?) to solving the HTML Popup issue Was(Re: [Wet-users] Fwd: Yet another pop-up question) but that was from last year and wondered if there is now a solution. Cheers, Daniel. On 11/04/06, Daniel Browne [EMAIL PROTECTED] wrote: Hi, Apologies

Re: [Wtr-general] Using Data from CSV or XLS

2006-04-11 Thread Daniel Browne
and: http://fit.c2.com/wiki.cgi?RubyPlatform On 11/04/06, Daniel Browne [EMAIL PROTECTED] wrote: See also: http://fitnesse.org/FitServers.RubyFit Note I have never used it though. Cheers, Daniel. On 11/04/06, Sean Gallagher [EMAIL PROTECTED] wrote: Here is some code that I am

Re: [Wtr-general] Exception handling

2006-04-07 Thread Daniel Browne
From the Watir user guide: Popup Windows --%-- JavaScript generated popups such as Alert boxes, Windows Security popups, and other popups that are not contained in a web browser are not accessible the same way HTML pages are.

Re: [Wtr-general] Programming a function for Recognizing and Storing Objects by Properties

2006-03-27 Thread Daniel Browne
Can you just use the contains_text or match (on the page or on the actual html using the html method) with a regular expression and extract text you want to be stored in the array? I'm pretty new to ruby and Watir so it might not be suitable for what you are doing. Cheers, Daniel. On 27/03/06,

Re: [Wtr-general] trying to grab a popup window

2006-03-24 Thread Daniel Browne
I gather there is no way you can just use a reguler expression to match the title? What is the form of it's title and how does it vary? Cheers, Daniel. On 23/03/06, Mike Kolcun [EMAIL PROTECTED] wrote: I've got a situation where I have a the main window of an application that pops up a new