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?
*
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
: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
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:
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
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:
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
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
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.
-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
-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
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
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:
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?
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
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
-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(/#.*#/)
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
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
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
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
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
22 matches
Mail list logo