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
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:
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
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
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
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
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
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
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).
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
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
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
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:
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
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 =
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
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.
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
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
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
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
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.
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
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
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
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
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:
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
--
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
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
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
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
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
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
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
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
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
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:
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/
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
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
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
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.
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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.
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
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,
]
-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
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
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:
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
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
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
68 matches
Mail list logo