[wtr-general] Re: Table row

2009-11-03 Thread Mark Anderson
More information would be useful. * What is your end goal? If you are testing a website that you are developing, talk to your developers and get them to put distinguishing properties in place. * Do the text boxes have distinguishing properties? * What are some of the things that you've tried? *

[wtr-general] Re: Answering incomplete requests

2009-10-30 Thread Mark Anderson
I also monitor the watir tag at stackoverflow.com. There have been very few queries there, and if they are of slightly higher quality than the average question here, I think that it is because of the barriers to entry there (OpenID, website vs email, etc). There is another site that I think

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-25 Thread Mark Anderson
:215 :in `click' On Sep 17, 9:19 pm, Mark Anderson mander...@drillinginfo.com wrote: What exception are you seeing?  What would you like to do when you encounter it?  Without more information, it will be hard to give you more than basic information about exception handling. Here

[wtr-general] Re: How to handle Exceptions in Watir

2009-09-17 Thread Mark Anderson
What exception are you seeing? What would you like to do when you encounter it? Without more information, it will be hard to give you more than basic information about exception handling. Here is the link to a page about ruby exception handling that I refer to when working in this area:

[wtr-general] Re: element focus status

2009-09-11 Thread Mark Anderson
Manoj, Have you looked at the show_active() on Watir::IE? (http://wtr.rubyforge.org/rdoc/classes/Watir/IE.html#M000267) It returns a string that you could easily parse. Looking at the source (http://wtr.rubyforge.org/rdoc/classes/Watir/IE.src/M000267.html), it looks like it uses

[wtr-general] Re: Check value of anonymous text field

2009-09-02 Thread Mark Anderson
I don't think your call to #collect is doing what you expect. For each text field, puts is printing the details and returning nil. textF is then an array of nils with the same length as the number of text_fields. The documentation of the #collect command is available at:

[wtr-general] Re: Dynamically generated elements on Ajax app

2009-08-06 Thread Mark Anderson
The standard first answer to this question is how do you locate the element on the screen when running the test manually? Is it in a particular area? Does it always have the same text? Is it the third one on the page? Without that level of detail, we will have trouble giving you more than

[wtr-general] Re: Getting text between two br / tags

2009-07-29 Thread Mark Anderson
There is a line of text that I want to extract. It is found in some HTML that follows this pattern: a href=...img src=...//abr/ !-- An image link -- Some text br/ a href=...Another link (variable text)/a br/ Text I want to extract. br/ Updated by a href=...name (variable)/a X

[wtr-general] Re: Why Do Exists? Exceptions Occur?

2009-06-25 Thread Mark Anderson
This has been reported many times and is being tracked in JIRA: http://jira.openqa.org/browse/WTR-281 The JIRA report includes an unsupported monkey-patch you can use. I would like to improve watir's frame handling, but I don't know when I will find the time to work on it.

[wtr-general] Re: 30 Second Pauses When Scripting Hotmail

2009-06-17 Thread Mark Anderson
-Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Bill Mosteller Sent: Tuesday, June 16, 2009 3:42 PM To: Watir General Cc: arti.si...@eloqua.com Subject: [wtr-general] 30 Second Pauses When Scripting Hotmail I'm

[wtr-general] Re: Why Do Exists? Exceptions Occur?

2009-06-16 Thread Mark Anderson
-Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Bill Mosteller Sent: Tuesday, June 16, 2009 7:49 AM To: Watir General Cc: arti.si...@eloqua.com Subject: [wtr-general] Why Do Exists? Exceptions Occur? A little loop

[wtr-general] Re: Unable to click on Tabs

2009-05-28 Thread Mark Anderson
Here is the command that we have used to register AutoIt: regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Vishal Sent: Thursday, May 28, 2009

[wtr-general] Re: How can we take screen shot when error occurs?

2009-05-11 Thread Mark Anderson
My first instinct is that you want to use .click_no_wait instead of .click on the submit button. .click waits for the next screen to load which doesn't happen until after the error window has been dealt with. /\/\ark _ From:

[wtr-general] Re: Need to find text of an element using watir

2009-03-26 Thread Mark Anderson
Something like browser.text ? Can you give us an understanding of the larger problem you are trying to solve? Can you show us the code that you've tried, the results they have given, and the reason why the results are not what you are looking for?

[wtr-general] Re: Okay little more help

2009-03-11 Thread Mark Anderson
Inline responses... -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of maximore Sent: Wednesday, March 11, 2009 12:22 PM To: Watir General Subject: [wtr-general] Okay little more help Okay my previous post was about

[wtr-general] Re: ie.test_field(name,man).value.to_s / Passing result to a parameter

2009-03-06 Thread Mark Anderson
Do you mean: result = ie.text_field(:name, dayOfBirth).value.to_s a) you shouldn't need to use .to_s, value returns a string b) could you email the actual error message to the list? -Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On

[wtr-general] Re: slice question

2009-02-27 Thread Mark Anderson
-Original Message- From: watir-general@googlegroups.com [mailto:watir- gene...@googlegroups.com] On Behalf Of Moochie Sent: Friday, February 27, 2009 2:25 PM To: Watir General Subject: [wtr-general] Re: slice question #0|0|0|3# - #0|0|1|3 excel_value.to_s.slice(/#.*#/)

[wtr-general] Re: Accessing global variables using FireWatir inconsistent...

2009-02-19 Thread Mark Anderson
I noticed recently that images don't mind you moving to another page, but most watir elements do. I would recommend you change your global_controls.rb to be methods: def search_field $ie.text_field(:name, q) end etc. This way, when you do search_field.set, it will actually go and find the

[wtr-general] Re: ie.text.include?

2009-01-30 Thread Mark Anderson
Oh, yes, I'm aware of irb. I use it in combination with SciTE. In fact, I used it to go through the six frames as you suggested below, but they all returned 'false': ie.frame(:name,ctl140_ctl00_ctl03_ctl01).text.include? 'FIND THIS TEXT' and 5 other searches by frame returned

[wtr-general] Re: scripts for IE and Firefox both

2009-01-30 Thread Mark Anderson
I understand what you are asking Lisa, and I can't express it any better than you can. I am also dealing with various things that pop-up in my app (modal windows, java script warnings, etc). I have everything running successfully under IE7, but they won't run against IE6 or Firefox. At this

[wtr-general] Re: undefined method `flash'

2009-01-27 Thread Mark Anderson
Last I looked Frame objects do not have a flash method. What are you attempting to do - beyond make a frame flash? I generally only use the flash methods when I am working interactively with irb. I have not found them to be useful in my test scripts. In working interactively with frames, I

[wtr-general] Re: ie.text.include?

2009-01-27 Thread Mark Anderson
Thanks, Mark and Michael. I'm glad to have the frame handle business explained. Unfortunately, the text is still not being found at either the frame level or the browser level. If I look for text (using xx.text.include?) at the browser level, should I expect it to be found regardless of