Re: [Wtr-general] Menu links have duplicate attributes

2007-01-08 Thread Michael Bolton
I am currently having a problem clicking on a menu item. This menu item has the same attributes as another menu item, but they both do different things. I was using ie.frame(left).link(:id, 21).click (example) however because the link id's change depending on the user access rights I found it

Re: [Wtr-general] Can I attach to an open Excel session?

2006-12-11 Thread Michael Bolton
What problems are you trying to recognize using this procedure? That is, what is this procedure testing, and what are its oracles? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lou Wilson Sent: December 9, 2006 10:14 AM To:

Re: [Wtr-general] Excel Or Text File?

2006-12-06 Thread Michael Bolton
Using a spreadsheet is pretty straightforward, especially for the simpler functions, if you use the link that Charley cited earlier. Fancy stuff requires a little more effort with the (very, very strange) Excel object model. I've found good hints on how to do this in VB books and by using the

Re: [Wtr-general] Can Watir Download .html Pages...?

2006-11-27 Thread Michael Bolton
I think you're looking for wget; Google it. ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of san Sent: November 27, 2006 11:55 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Can Watir Download .html Pages...? It Says That It

Re: [Wtr-general] [OT] Running scripts on machines without ruby

2006-11-22 Thread Michael Bolton
I've tried it. It's a little porky if you're compiling something small, but the size of the executable didn't matter much when I used it and it might not matter to you either. Performance similarly wasn't an issue, so I don't know about that either. But I will say this: it sure does the job

Re: [Wtr-general] Question from a newbie

2006-10-24 Thread Michael Bolton
wish IE was stricter with the spec. It would make all of our automation activities much easier. I'm just saying... :-) --Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bolton Sent: Monday, October 23, 2006 8:00 AM To: wtr-general

Re: [Wtr-general] Question from a newbie

2006-10-24 Thread Michael Bolton
Just to be clear, there are two oracles by which I would consider this a bug. The non-comformance with the World Wide Web Consortium's spec is actually the lesser of them, because the W3C is not really a stakeholder; they don't have any skin in the game. The fact that the duplicated ID attribute

Re: [Wtr-general] Question from a newbie

2006-10-23 Thread Michael Bolton
Do I misread the HTML 4.01 spec (http://www.w3.org/TR/html401/index/attributes.html)? It says that ID is a document-wide unique ID. The whole point of the ID tag is to have a unique ID, is it not? Doesn't having a non-unique ID defeat the purpose of having an ID altogether? I agree that the

Re: [Wtr-general] Question from a newbie

2006-10-20 Thread Michael Bolton
I just downloaded Watir to help automate some tests. I've found it pretty intuitive and easy to learn but I'm having trouble getting it to fill out a text field on a form. The problem is that there are two text fields with the same id and same name (all other attributes are equal as well).

Re: [Wtr-general] Outlook Access

2006-10-12 Thread Michael Bolton
I have automated some activities in Outlook successfully with VB. It was painful, mostly because of the completely bizarre object architecture for MS Office products in general and Outlook in particular. Intuitive it ain't; see the recent reference in this forum to the weird approach to

Re: [Wtr-general] Formatting Excel Column Width

2006-09-24 Thread Michael Bolton
excel = WIN32OLE::new('excel.Application') workbook = excel.Workbooks.Open(../PC/ + Time.now.strftime(%d-%b-%y) + .csv) worksheet = workbook.Worksheets(1) #get hold of the first worksheet #Format workbook columns worksheet.range(b1:b4).Interior['ColorIndex'] = 36 #pale yellow # How do I widen the

Re: [Wtr-general] attach

2006-09-11 Thread Michael Bolton
Default approach: check your spelling and syntax. ie3=IE.start('http//:www.googl.com') If it's something other than the fact that you've put the colonafter the slashes, or the fact that you've left out the "e" in "google" (or some similar kind of problem), let us know. I sympathize; I

Re: [Wtr-general] verify html list and that that list isin sequentialorder

2006-08-17 Thread Michael Bolton
r = /UL\s*LIHINCKLEY\/LI\s*LIHINDHEAD\/LI\s*LIHINTON ST GEORGE\/LI\s*\/UL/ How would I get to the source to use this RegEx? ie = Watir::IE.start(http://www.adrians_test_page.html;) offset_of_list_in_page = (ie.html =~ r) ---Michael B. attachment:

Re: [Wtr-general] verify html list and that that list is in sequentialorder

2006-08-16 Thread Michael Bolton
I don't understand the hard part. From what you're describing, and the way you're describing it, a regular expression could do it: r = /UL\s*LIHINCKLEY\/LI\s*LIHINDHEAD\/LI\s*LIHINTON ST GEORGE\/LI\s*\/UL/ Is there something that I'm not understanding? ---Michael B. -Original

Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Michael Bolton
My requirement is that, I want to print some text in 5 times in one text box like User name. I want to do with for loops but I'm not able do that. Give me suggestion if you have any sense about that require 'watir' include Watir ie = IE.start(http://www.google.ca;) the_field =

[Wtr-general] AWESOME Ruby Hacks

2006-07-26 Thread Michael Bolton
Hi, folks... In Chris McMahon's presentation at Agile 2006 today, we found this site: http://blog.nicksieger.com/articles/2006/04/23/tweaking-irb This outlines some wonderful things about how to hack your IRB configuration file to do some totally awesome things, including - IRB command-line

Re: [Wtr-general] Rounding values

2006-07-20 Thread Michael Bolton
I want to verify if the text is correctly displayed depending on different input scenarios. The web application however rounds values, e.g. if the calculated result is 170500 then displayed should be 18. How can i do same in Ruby/Watir? I'm not sure I understand the question and the context.

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Michael Bolton
Ruby's Logger object? What do you mean by best? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Reed Sent: July 19, 2006 9:51 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Best way to log Watir output? What is the best way

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Michael Bolton
The only resource I was able to find online pointed me back to the test_logger.rb script in watir/examples/logging. This script manually logs each action by doing a result/escape on each assertion to output the result to a .txt file. While this works, it's tedious and inefficient for a large

Re: [Wtr-general] Attaching a Popup

2006-07-18 Thread Michael Bolton
The app that I am working with has a lot of popups with important functionality on them. I have been unsuccessful in getting Watir to see these new windows, and I cant figure out why. The window Im looking at now appears after a button click: ie.button(:name, addItem).click and Ive tried

Re: [Wtr-general] Spaces in paths

2006-06-21 Thread Michael Bolton
I'm trying to use cookiemanager to delete data between test iterations but my paths contain spaces. What does your /code/ contain? ---Michael B. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Michael Bolton
Thanks for the correct RegEx; it finds an object, but not the one I want. Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).click Possibly--but this might be a good occasion to ask the developers for testability. ---Michael B.

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] Beep for intervention?

2006-06-06 Thread Michael Bolton
Hey, I've got an idea: why have humans even review the test results? I mean, that's just a suggestion that the script can't fix whatever problem is in the code that's under test, right? In fact, why have humans write the test scripts at all? That really smells like we need humans involved

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

2006-06-06 Thread Michael Bolton
This isn't a bug in Watir, so the BUG: title for your message isn't appropriate. There are lots of bugs here, but they ain't in Watir. Does your script include 'require watir.rb' and 'include Watir' at any point? When you try to attach using a string literal, it's unlikely to work for attaching

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

2006-06-06 Thread Michael Bolton
computer. We solved the problem by running each scraper under a different user so each scraper got it's own folder for cookies and they then stopped overwriting each other. David Michael Bolton wrote: This isn't a bug in Watir, so the BUG: title for your message isn't appropriate

Re: [Wtr-general] TypeError: can't convert NilClass into time interval

2006-05-24 Thread Michael Bolton
Yes; I think I know what might be happening. There's probably a problem with your code. Can we see it, please? ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Quang TranSent: May 24, 2006 10:16 PMTo: wtr-general@rubyforge.orgSubject: [Wtr-general] TypeError:

Re: [Wtr-general] Access Denied with Frames

2006-05-02 Thread Michael Bolton
It clearly helps some people. I wonder if the error message could include the suggestion to add the server to the trusted site? (I'll volunteer to help with the writing of it.) ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko

Re: [Wtr-general] Unable to Click on tab - any workaround??

2006-04-19 Thread Michael Bolton
-- On 4/18/06, Michael Bolton [EMAIL PROTECTED] wrote: I can't see how the empty double quotes are helping matters; you're not telling Watir which tabs you want to click (or you're telling it to click a tab with no name

Re: [Wtr-general] keyword-driven framework

2006-04-18 Thread Michael Bolton
As a programmer told me repeatedly, you can create fixtures to whatever you like. http://www.cornetdesign.com/2005/12/fitnesse-and-ruby-basic-tutorial.html Do I misunderstand the question, though? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Wtr-general] Unable to Click on tab - any workaround??

2006-04-18 Thread Michael Bolton
I can't see how the empty double quotes are helping matters; you're not telling Watir which tabs you want to click (or you're telling it to click a tab with no name). The absence of the actual source code on which you're trying to work doesn't help either; you're not telling us the HTML

Re: [Wtr-general] How can my script wait until a new window hasfinished loading before using IE.attach?

2006-03-20 Thread Michael Bolton
I observe only one thing that's odd about this. When I start up IE manually, I'm taken to google.ca (the Canadian version). The title bar for the window reads Google - Microsoft Internet Explorer. I set IE.attach_timeout to 15. I issue this command ie = Watir::IE.attach(:title, /oogle/) and

Re: [Wtr-general] how to handle latency

2006-03-09 Thread Michael Bolton
You might want to consider it a reasonable thing to wrap the snippet below into the File class, so: class File [the snippet] end and put it into a utility module such that you can require and use it generally. ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Wtr-general] Access Denied Frames

2006-03-09 Thread Michael Bolton
I don't understand the report. Does the script fail when you try to access the page via a proxy server, or when you try to access a page without the proxy server? What happens if you try to access the same page manually using the proxy server? What happens if you try to access the same page

Re: [Wtr-general] How to create a folder having the name of system dateand time , at runtime?

2006-03-04 Thread Michael Bolton
1. When I run a particular .rb file, I would like a directory/folder to be created automatically and in that my output result text file should be stored. In other words, a folder should be automatically created at runtime which would hold a .txt file containing the results. That folder

Re: [Wtr-general] Older scripts running really slow...

2006-03-02 Thread Michael Bolton
Obvious possibilities are - response time on the Web pages - typing speed in the forms Are your pages visible? Do they look slower? When they're loading? When they're typing? If you've got one test that takes half a minute and another that takes three minutes (which you do), the places

Re: [Wtr-general] HTML Page Size and Load times

2006-02-27 Thread Michael Bolton
Incidentally, someone once mentioned to me that there is a down_load_time attribute, but I can't find any info on it anywhere. Is there a reference in the Watir API or elsewhere that can tell me what methods and attributes are available for working with the HTML pages?For load time try

Re: [Wtr-general] Script hangs and does nothing

2006-02-25 Thread Michael Bolton
HTML doesn't have buttons; it has inputs withtypes of "image" or "button" or "submit". I've never understood why WATIR doesn't track (at least via aliases) HTML's conventions: input(:img, "blah").click input(:button, "foo").click input(:submit, "bar").click ---Michael B. From:

Re: [Wtr-general] Script hangs and does nothing

2006-02-24 Thread Michael Bolton
on "New Subscriptions" button, that will take you to the second link you mentioned. On 2/23/06, Michael Bolton [EMAIL PROTECTED] wrote: Here's what I'm observing: when I click on the URI in your message below, I get this: http://www.seattlesymphony.org/symphony/buy/subs/

Re: [Wtr-general] Script hangs and does nothing

2006-02-23 Thread Michael Bolton
ie.radio(:name, 'Section','62').set() ie.button(:alt, 'Add This Series To My Cart').click ie.button(:alt, 'Continue To Next Step').click end end On 2/23/06, Michael Bolton [EMAIL PROTECTED] wrote: Did you cut and paste the code into your mes

Re: [Wtr-general] Goto(url)

2006-02-10 Thread Michael Bolton
When you say fail, what Bad Thing happens? What Good Thing fails to happen? Do you get an error message? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Dolguikh Sent: February 10, 2006 10:03 AM To: wtr-general@rubyforge.org

Re: [Wtr-general] Are there any References toRuby/WatirwrittenbyTesters?

2006-02-09 Thread Michael Bolton
Michael, "Imagine trying to create an automated spelling and grammar checker without really *learning* English." Actually, No... that is a programmers job... I am not making the spelling checker... I am checking that the spell checker catches all the mis-spellings on the page... ... I

Re: [Wtr-general] How do you find a specific string in an HTML page?

2006-02-09 Thread Michael Bolton
Regular expressionliness is next to godliness. # This next line will set its_there to true if, in the html for the page, it sees # the string "customerID="followed by any seventeen characters, and # (courtesy of the parens) will set $1 to whatever those seventeen # characters are.

Re: [Wtr-general] Using Watir/Ruby scripts

2006-02-09 Thread Michael Bolton
Tonight's example: parsing an HTML document to find a regular _expression_. I'm not aware of any simple way to get a shell script to download a page, follow a link, grab a graphic from a page, etc., etc., etc. The purpose of any powerful language is to make stuff easier. Shell scripts are

Re: [Wtr-general] is there a way to package watir scripts to run onanother PC...

2006-02-08 Thread Michael Bolton
1) Is there a way to package my test scripts to run on a machine that don't have Ruby/Watir installed. 2) If a PC has Ruby/Watir installed but don't have eclipse ide ,is there a way to make my scripts into an executable and the person running the scripts could just double click on the file

Re: [Wtr-general] clicking on a link problem

2006-02-01 Thread Michael Bolton
I have no idea what is causing this. Neither do we. So far as we know, your code snippet might be preceded by $ie = nil What does the original page look like? What doesyour original code look like (that is, at least a few lines before the call in question)? (General question, not

Re: [Wtr-general] Ruby Nubie fails to get out of the box with Unittests

2006-02-01 Thread Michael Bolton
A below. And when I restored that folder to its proper name, I got 5 failures and 2 errors. That's Error Set B below. ---Michael B. Error set A === 1) Failure: test_imageHasLoaded(TC_Images) [C:/Documents and Settings/Michael Bolton/My Documents/Download/Watir/watir-v1_4/unittest s

Re: [Wtr-general] My Tab Click problem

2006-01-31 Thread Michael Bolton
What is the problem that you were unable to solve? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gavazn Vahshi Sent: January 31, 2006 8:26 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] My Tab Click problem Hi All, I went

Re: [Wtr-general] Tab Click

2006-01-30 Thread Michael Bolton
That's my guess too, but I'd like to hear from Meghanath. ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin Sent: January 30, 2006 4:08 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Tab Click I guess nothing

Re: [Wtr-general] How do I validate HTML and Javascript?

2006-01-30 Thread Michael Bolton
Validating HTML and checking for HTTP errors are vastly different things. Validating HTML is something that you can do by any number of means. Some Web development tools come with syntax validators and link checkers; there is a checker at validator.w3c.org that will ensure that your HTML is

Re: [Wtr-general] clickWindowsButton (help :)

2006-01-27 Thread Michael Bolton
Title: Order of execution / button().click? Is range.wacTagAdd the nameof the button? I see below, NAME='b_Add_'as the name attribute -- should 'b_Add_' be thevalue instead?Should your name value be in single quotes? If you do all this, could you get rid of the getOLEObject part? Also:

Re: [Wtr-general] Tab Click

2006-01-26 Thread Michael Bolton
So ie.button(:text, "Contents").click doesn't work? What does your code look like? What have you tried? Have you seen any error messages? Have you stepped through it in IRB? ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chintakrindi Meghanath Sent: January

Re: [Wtr-general] Tab Click

2006-01-26 Thread Michael Bolton
When I said "source code", I meant your Ruby source, not the HTML source for the Web page. ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chintakrindi Meghanath Sent: January 26, 2006 2:46 PMTo: wtr-general@rubyforge.orgSubject: Re: [Wtr-general] Tab Click

Re: [Wtr-general] Tab Click

2006-01-26 Thread Michael Bolton
We know that they're not generating an ID; that's clear from the HTML. What Sergio was suggesting is that you ask them to do so. Can we /please/ see some of your Watir/Ruby code? This may be failing for entirely different reasons that our assumptions suggest. ---Michael B. From: [EMAIL

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

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

Re: [Wtr-general] Random number generation.

2006-01-23 Thread Michael Bolton
Can I use methodnames other then "test_sometest" in my script. For example, I have a method that performs a calculation and returns a value and passes that value to test method. Unless I rename my calculation method as "test_calculation" the method is not executed. I know that my class is

Re: [Wtr-general] Selecting a table cell

2006-01-17 Thread Michael Bolton
This is how it looks to me: Watir contains a Table object, whose [n](where n is an index) returns a row, whose [n](where n is an index) returns the cell in the nth column. Then you can use clip.rb (at http://segment7.net/projects/ruby/snippets/clip.rb) or something of its ilk to copy the data

Re: [Wtr-general] Link that can not be found

2006-01-16 Thread Michael Bolton
Thanks, Bret. Even though it's not an issue exclusive toWATIR or its documentation, I'd contend that it's relevant. Many people (partly because of the price, for example) will be coming at test automation for the first time through WATIR. I wouldn't necessarily put this sort of gloss in

Re: [Wtr-general] RPC Server unavailable

2006-01-13 Thread Michael Bolton
Hi, Dmitri... After a little research, I'm not at all sure if there's anything WATIR-specific about this problem, or that there's anything that can be done in WATIR to mitigate it. The error message is sadly very general. I found these two documents that might shed some light on the problem.

Re: [Wtr-general] Design Problems

2006-01-11 Thread Michael Bolton
I would like gently to suggest that your inexperience as a developer isn't the problem here. This is a fundamental question about test automation in general. You're not alone; I'm not convinced that very many people have thought particularly hard about it. I think enough time has gone by

Re: [Wtr-general] selecting cells in Excell using activecell

2006-01-10 Thread Michael Bolton
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon Sent: January 9, 2006 6:41 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] selecting cells in Excell using activecell One fine day, I'll write a really good Ruby-Excel interface. Don't hold your breath,

Re: [Wtr-general] Newbie - How to get value found bysearchingforregular expression?

2006-01-08 Thread Michael Bolton
] -Original Message- From: Michael Bolton [mailto:[EMAIL PROTECTED] Sent: Sat 07-Jan-06 3:12 PM To: wtr-general@rubyforge.org Cc: Subject:Re: [Wtr-general] Newbie - How to get value found by searchingforregular expression? If you change the regular expression from /[0-9]{8}-[0

Re: [Wtr-general] Newbie - How to get value found by searching forregular expression?

2006-01-07 Thread Michael Bolton
If you change the regular _expression_ from /[0-9]{8}-[0-9]/ to /([0-9]{8}-[0-9])/ then after the match, the variable $1 will contain the contents of the matched string. ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon PassmoreSent: January 5, 2006

Re: [Wtr-general] interesting behavior of require in my TestSuite torun test cases in a sequential order...

2006-01-07 Thread Michael Bolton
Looks to me like they're running in alphabetical order. But why are you using /require/ instead of calling them? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roy Sin Sent: January 5, 2006 8:45 PM To: wtr-general@rubyforge.org Subject:

Re: [Wtr-general] selecting cells in Excell using activecell

2006-01-07 Thread Michael Bolton
Hang on a sec. By assigning sheet = application, you're setting the sheet objection to the application object--which means you've lost access to the sheet object by reassigning it. If you simply said application.activecell.offset(1,0).activate you'd get the same effect, and you'd still have a

Re: [Wtr-general] PDF Testing using the Watir

2006-01-07 Thread Michael Bolton
I don't know how to answer your question in a way thatwould behelpful to you; one reason that you haven't got a responsemay bethat your question is too general to inspire an answer. What do you mean by your question? What specific problem do you want to address? What testingproblem do you

Re: [Wtr-general] Link that can not be found

2006-01-07 Thread Michael Bolton
I'm resending this message because I don't believe that it ever appeared on the list. If it did, please pardon me. ---Michael B. A while back, someone wrote: I am having the problem with the link of the following form: a href=""uSign in/u/a And it appears that the both lines below can not