Chris McMahon wrote:
Eh. I had the opposite experience. It made me go read about what a
Module is.
They why did you say it's magic anyway?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Ken wrote:
ItemShopping.rb:40: undefined method `Select' for
#Watir::SelectList:0x2d64ca8 (NoMethodError)
Again, here is the line it is referring to:
ie.select_list(:name, frameMain:_ctl5:_ctl1:SearchType).Select(Supplier
SKU)
I noticed that when i use the Dev tool to ensure that the
Chris McMahon wrote:
I just think
ie = IE.new
is nicer than
ie = Watir::IE.new
If we are going to tell everyone to do 'include Watir', then we could
make things easier by putting just this line of code in watir.rb and
have it execute automatically when the 'require watir' happens.
Or
Ken wrote:
Here is the HTML for the object:
TD
SELECT class=StdDropDownList id=frameMain__ctl5__ctl1_SearchType
name=frameMain:_ctl5:_ctl1:SearchType
OPTION value=KeywordKeyword/OPTION
OPTION value=SupplierSKUSupplier SKU/OPTION
OPTION value=SupplierNameSupplier Name/OPTION
OPTION
Chris McMahon wrote:
From my perspective, I always start out by requiring and including watir,
because I'd rather paste it into the top of a script once than have to type
Watir:: several times below.
I was planning to say that I'd love to have watir automatically included
whenever I require
Željko Filipin wrote:
On 5/16/07, *Jeff Fry* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Any input from folks who either use or have tried unsuccessfully
to use these two?
I have tried to use it, but it did not work for me. As far as I am
concerned, it can be removed.
Brian Marick wrote:
I'll check it out. The only advantage over using popen is that you
don't have to have an executable ruby file (and know where to find
it). You can just require a watcher file and do the work without any
implicit or explicit exec.
I seem to remember seeing a
Ken wrote:
I just downloaded Watir a week ago so I assume its the latest and greatest.
No, there is no refresh when the box is selected.
You are using 1.4.1. You can find more recent versions here:
http://wiki.openqa.org/display/WTR/Development+Builds
Paul Rogers wrote:
ie.div(:class , 'wiki').ole_object.invoke('innerText' , hi Chris)
My guess would be
ie.div(:class , 'wiki').ole_object.innerText = hi Chris
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Paul Rogers wrote:
I think its important to support both at the moment, as Im sure many people
still havent upgraded.
If you or someone else had a patch for
http://jira.openqa.org/browse/WTR-116, that would help.
___
Wtr-general mailing list
Chris McMahon wrote:
Answering my own question, I'll bet that s/innerText/textContent/
would work. (Thanks Selenium reference page!) But I haven't tried
it yet.
There's another good candidate for refactoring.
Could you say more words about what you are suggesting.
Chris McMahon wrote:
Quoting from the Selenium reference:
storeText ( locator, variableName )
Gets the text of an element. This works for any element that
contains text. This command uses either the textContent (Mozilla-like
browsers) or the innerText (IE-like browsers) of the element,
Chris McMahon wrote:
Paul, Bret, I tried both syntax examples and got errors on both. Do
you see anything wrong with
ie.frame(:index,1).div(:class, 'wiki').ole_object.innerText = McChris
was here or
ie.frame(:index,1).div(:class,
'wiki').ole_object.invoke(innerText,McChris was here)
I'm
Chris McMahon wrote:
Neither Watir nor Selenium nor FireWatir currently provides commands for
munging text directly. To me this sounds like something that is outside
the scope of a testing tool. Can you elaborate on the scenario that
makes you want to do this? Is it testing related?
alan wrote:
I'm doing a test where I fill in a field with :
ie.text_field(:name,track_note_0).set(testtext)
it then saves this entry with a:
ie.button(:value, save).click
and then logs out.
I need to have the script go back to the page and make sure that field still
has that text in it,
Brian,
Thanks for your detailed report. As you no doubt have realized, Watir's
support (if it can be called that) for popups is none too good: awkward
and often unreliable. So your efforts are much appreciated. Personally,
I haven't had to deal with popups in my scripts, mostly finding ways to
Charley Baker wrote:
It's a curious bug, just saw the same thing. A bug/feature, works more
than it should. :) Chris is right we should definitely spend more time
with Angrez, Prema and the Firewatir community. I'm getting slammed by
requests for multiple browser tests and starting to
this on list, but had no replies. It happens always when
I do
goto (www.hotmail.com)
Is there any known bug in 1.5 latest gem?
Any directions so that I can give more inputs to debug problem.
Watir Version: watir-1.5.1.1158.
Thanks and Regards,
Manish
Bret Pettichord wrote:
aidy
A new gem is ready for download. This is the latest pull from Subversion
source, tagged at 1.5.1.1166. Changes in this release include:
* The wait method was completely rewritten. This should fix various errors
seen in 1.5.1.1165 and 1.5.1.1158.
* Removed the spinner.
Paul Rogers wrote:
will you be providing some call back mechanism so I am able to add my
own spinner when the page is loading?
I didn't realize that anyone was still using this. The main reason that
i removed it was simply because we did not have good unit tests for the
wait code and
Derek Wong wrote:
Hi,
I'm trying to write some tests that test various attribute keys in DIV
elements for particular values. The DIV in question has a class
attribute but even though I know the attribute is defined, invoking
attribute_value(class) always returns nil. I've tried this on
Chris McMahon wrote:
I can think of a couple of ways to do this, but they're all painful in
one way or another. Ruby being Ruby, I wonder if there's some nifty
shortcut. Given
floats = []
floats 3.456
floats 1.53
floats 5.123
show that the least element of the array is 1.53 and the
Jeff Fry wrote:
I'm left hoping we can find another way for me to learn what's been
added but not documented in v1.5. So Brett, Charley, Paul, or others
involved in building v1.5...if you were going to update the rdoc, how
would you know what to edit? If you were going to be making the
Paul Rogers wrote:
In my opionion, the rdocs are really dificult to read right now. I
think if I was picking up watir now and looking at the rdocs for the
first time, Id be a bit disheartened.
I would make sure that only relevant ( to the end user )
methods/classes/modules are in the
Helder Ribeiro wrote:
I think a section of recipes, where people could post clear and well
commented code on how to do specific tasks, would also be very useful,
perhaps even some non-testing stuff like automating airline ticket
searching or emptying large gmail labels. It could start with
Thanks for your detailed replies. Comments inline.
Christopher Rasch wrote:
Well, ultimately, I want to be able to handle any popup that the browser
throws up: attach to it, manipulate it, etc. My understanding is
that better modal dialog support is one of the new features of Watir
1.5.
Dhrubojyoti Biswas wrote:
I am eager to know if there is a better way to do this?
Use Watir 1.5. This problem is fixed there. You can look at the
repository on openqa if you want details.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Željko Filipin wrote:
Watir user guide can have enterprise look, but I would also like to
create one version with cartoon characters. I am sure there are lots
of creative people here and I hope they will show their creativity. If
you would not like to see cartoon characters in Watir user
Chris McMahon wrote:
The Scripting101 course could use some enhancement. I'm just sayin'...
http://rubyforge.org/frs/?group_id=104
I am actually in the process of rewriting this using the Depot/Rails
test application.
Bret
___
Wtr-general
Christopher Rasch wrote:
Both of these tickets relate to improving the existing modal web dialog
support (showModalDialog). At this point, I no longer have plans to work
on them and no one else has volunteered to work on them. Probably the
biggest problem with our current support for
Paul Rogers wrote:
Id like the winclicker code to disappear and be replaced by a full windows
testing library ( How you getting along with that Chris ? ). Enough people
seem to want it.
I think a lot of people would like to see that. I certainly would. But
last i looked Chris's project
Christopher Rasch wrote:
Thanks! How should we contribute to the User Guide? It doesn't appear
to be user editable:
http://wtr.rubyforge.org/watir_user_guide.html
This HTML file is stored in our SVN repository.
I think one question Zeljko needs to address is what form he wants it to
Christopher Rasch wrote:
I'm looking forward to ... better support for modal_dialogs on the supported
platforms.
Nothing is planned in this area. What were you hoping for?
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
I'm not sure i understand the context (is this supposed to be part of a
thread? because it isn't).
In any case, there are some recent changes that I made to trunk that
might fix this problem.
Bret
Ken Lim wrote:
Good day.
Hope I understood your request for stack traces correctly.
Please
Charley Baker wrote:
I'd like to send out another annoucement asking for people to
contribute to the Watir user guide and volunteer. I've started poking
around at the user guide today and made a few changes, notably to
update view source with the ie developer toolbar. I'll make further
Eoin wrote:
However FireWatir doesn't ignore the login button and bombs out when it sees
it.
It would help if you showed us the error and the page. However, my guess
is that the problem is with the behavior of contains_text. In Watir for
IE 1.4 this did not include the title. In Watir for
I've been doing a lot of thinking and planning for what we need to do
with Watir. I've also been fairly quiet. I now have a new job and have
been preoccupied by the change in jobs lately: with wrapping up
affairs at my old job at DataCert, with a job search, and then with
starting at Dovetail,
alan wrote:
In my watir script i would like to have it go to open a dos command window
and start sqlplus, then run a simple query to see if a member exists, the
flow would be something like:
open cmd.exe
log in as [EMAIL PROTECTED]
pass the password somewhere around here
do query select *
Paul Rogers wrote:
This may be a good thing to try and coordinate with Chris Macmahons
Win32guitest port.
Where can i find out more about this?
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Angrez Singh wrote:
AutoIt3 is not supported by FireWatir. This is done so as to make
Firewatir platform independent. Only 'alert' and 'confirm' javascript
pop ups are supported as of now. We are looking into the
alternatives/solutions were we can support other dialogs like Save
File etc
Lillis, Dara wrote:
one thing I've noticed that's slightly weird is that when I use
click_no_wait from eclipse using the new rdt (eclipse 3.2, with rdt
0.9 RC1), what looks like a dos window pops up for a fraction of a
second. the method still works and the popup causes me no problems,
Here is what looks like a very useful tool for learning Ruby. This is from
the author of Why's Poignant Guide to Ruby.
http://hacketyhack.net/
http://code.whytheluckystiff.net/hacketyhack/wiki/GetHacketyHack
Bret
-- Forwarded message --
From: why the lucky stiff [EMAIL
Jeff Fry wrote:
Hi gang,
I have been trying unsuccessfully to access the username field on:
http://sandbox.freebase.com/signin/signin
http://sandbox.freebase.com/signin/signin
In the HTML source, all I see is:
div component=SignInComponent/
div
which is included above:
Bernard Kenik wrote:
I have a script which:
1. goes to a site
2. moves to the login page
3. login
4. moves to an interactive database
5. specify the desired data by means of checkboxes, select_lists, and
buttons
6. the result is the specified data displayed in a table.
What I would
Walter Kruse wrote:
Anyway, as I said, off topic so don't worry too much - this solves a
sort-term problem.
Just to be clear. I don't consider this line of questions to be off
topic. Yes technically they are Ruby questions rather than Watir
questions, but the are welcome on this forum.
vamsi wrote:
require 'test/unit'
class TC_Spike Test::Unit::TestCase
def test_crlf
data = first line
second line
assert_match(,data, /first line\s+second line/)
end
end
error: first line\r\n\r\nsecond line expected but acutal was /fist
line\s+secondling/
Please show your
Nicola Kennedy wrote:
require 'watir'
include Watir
require 'test/unit'
class TC_recorded Test::Unit::TestCase
def test_recorded
ie = IE.new
ie.goto(http://www.google.co.uk;)
ie.bring_to_front
ie.text_field(:name, 'q').set(barry manilow)
Koteswara Annavarapu wrote:
So , if I need to use WATIR module from the cygwin environment ,
please let me know wat I need to do of the below
1) change the environement variables in cygwin , for using the same
ruby installed in windows
2) let me know , if we can install the watir gem in
Daniel Kurtz wrote:
Thanks, I'll give it a try. Although I haven't had luck so far with things
like div().links. We'll see how it goes.
Use Watir 1.5.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Nicola Kennedy wrote:
I want the code to do the following things:
1. Check on page for a link.
2. If link not there, press Next page
3. If link there, click on it.
4. When next page reached (if step 2 followed), repeat the action of looking
for link/clicking next.
Here is one
aidy lewis wrote:
I am unsure why IE is a nested class of the module watir
All of the Watir classes are in the Watir module. This is to avoid
collisions with classes you may be using from other packages. Watir
tries to be a good citizen.
If you look at other Ruby libraries, you will see that
Ravi wrote:
Replace:
$mainF.contains_text(/myDates/)
with:
$mainF.contains_text(#{myDates})
This will also work:
$mainF.contains_text(myDates)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Simba wrote:
So what is the Ruby Version i have to use ,to resolve this problem.
1.8.2
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
eisdrache wrote:
I actually thought about the gserver route, but now that you mention the idea
of using rails my attention has been perked. I have done a tiny bit of work
with rails, but my overall knowledge of the framework is limited. I am highly
interested in learning and am actually in
John Lolis wrote:
waitr 1136
Lets say I have the following action i want to perform
$ie.frame('Frame').table(:id,'ID).table(:index,1)[1][2].click
But, the this is frame heavy page, and wait sometimes doesn't play nice, so I
decide to do
element =
It is time to find a new client. If you are right, with time they will figure
out on their own why they need you and will be calling you back.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
If you have problems with the OpenQA website, including Jira, Confluence
(the wiki) and the Forums, you should contact our host Patrick Lightbody
[EMAIL PROTECTED]. There is also a mailing list (but not a forum) for
discussing these issues. It is [EMAIL PROTECTED] and you can join by sending
an
The user
forum, and FAQ sections
of the openqa.org/water site are broken links
Could you please provide details so we can fix them.
Bret
-
Posted via Jive Forums
FYI
-- Forwarded message --
From: Patrick Lightbody [EMAIL PROTECTED]
Date: Mar 14, 2007 5:59 PM
Subject: [openqa-admin] IE issues
To: [EMAIL PROTECTED]
All,
If any of your users report or have reported issues with IE not
working on parts of OpenQA, please let them know the
$FAST_SPEED = true
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6874messageID=19838#19838
___
Wtr-general mailing list
Wtr-general@rubyforge.org
As Marick says, variables and objects are different
kinds of things. The name of the thing is not the
thing itself. Variables do not contain objects, they
point to them. In the array example Chris posted, we
assign a, a reference which points to the
collection containing [a, b,c], and then
Apparently inside an each loop you're only working
on a copy of the
item, not the item itself, so to_s isn't actually
working on the real
items in the array.
This is not true. The problem is not that you have a copy, but rather that your
reference ('item) is local to the block. Changing it
Please post some Ruby code that demonstrates your problem. What you posted was
pseudo-code and I was not able to follow it. Please post code that we can run,
so we can see your problem.
Bret
-
Posted via Jive Forums
Do we have a timeline on when this will work in
1.8.5? Is anyone working on this?
I don't believe any one is working on it right now. The simple solution would
be to merge our changes to the WIN32OLE library into the 1.8.5 version and
recompile it. But then we'd have the same problem again
Thanks for the reports. What versions of the IE Dev Toolbar are you using? I
noticed that they are now on Version Beta 3.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6590messageID=19263#19263
I'm getting an error with ci_reporter on my CI box. It works on my
development machine.
I've tracked the error down to the gem command, found here:
def create_builder
begin
gem 'builder'
require 'builder'
rescue
begin
gem
Ethan Jewett wrote:
gem replaced require_gem, sort of -
http://redhanded.hobix.com/bits/require_gemIsDeprecated.html
However, you seem to have a recent enough version of rubygems that
this shouldn't be a problem. Maybe there's a missing require
'rubygems' somewhere?
I'm using Ruby
Your problem is that unlike the Watir::IE objects, the objects returned
by Watir::IE::Frame are short lived. You are using your reference for
too long. Specifically a page refresh invalidates the object. Details below.
Bret
# return a current, valid reference to the frame.
def
Akhil Mehra wrote:
No the applications is currently hosted on the same server. I get the
following error when clicking on a link from one frame which inter
updates another frame.
Exception: unknown property or method `readyState'
HRESULT error code:0x80070005
Access is
Quang wrote:
Is there any way of using watir with java applets? Or does anyone know of any
testing tool that could test java applets?
You'll need to use a Java GUI Testing tool, like Abbot or Marathon.
___
Wtr-general mailing list
Nick Sieger wrote:
The other bit is that it will write its report files to
test/reports, unless you set the ENV variable CI_REPORTS to a
directory where they should be written.
I didn't know to look here. I installed ci_reporter today and had to
read the source to figure this out (I should
Simba wrote:
Thanks Bret , Toady i have seen that limitation in Watir site , i did not
knew this limitation in Watir and also i am new to Watir , I have another
question for you
For some page I used ie.show_all_objects in CMD , it has given ouput
something like this
HTML Docuemnt
See http://jira.openqa.org/browse/WTR-71 for comments on how to support Chinese.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6674messageID=19265#19265
___
Walter Kruse wrote:
I just wish the Win32-GUITest library could get the same amount of
attention. I've had lots of success with Perl's version of this lib.,
and would like to do that testing in Ruby now.
Maybe you could give it some attention. Seriously, there is no one to do
this stuff
sathees wrote:
I am running watir 1.4.1 , if I update to 1.5.1 then my test is not running
in IE 6
Please report details. We are giving top priority to these problems.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
sathees wrote:
i am getting an error i have added the div to where the links i want are
located.
irb(main):363:0 s=[]
= []
irb(main):364:0 ie.div(:id, top).links.each {|link|slink.text}
NameError: undefined local variable or method `document' for
#Watir::Div:0x2dfdafc
from
Akhil Mehra wrote:
Hi Guys,
I am currently trying to use Watir (1.5.1.1158) to test Web
applications in our organization. The web application i am trying to
build test around have a number of Frames and IFrames and in a number
of cases heavily nested.
I am currently facing problems
sathees wrote:
yes that's true. it works with watir 1.5.XX.
but the problem is my test which runs well in Watir 1.4.1 ie6 doesn't run
with watir 1.5.xx and IE 6. I am getting the following error. any help
appreciated
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1127/./watir.rb:2592:in
Simba wrote:
Hi,
I have several [b]Delete[/b] caption button on page , To identify them i am
trying to use multiple properties but its giving error some thing like this
ie.button(:text='Delete',:index=1)
please anybody tell me how solve this problem.
This is a known (to me) problem.
Maisonnette wrote:
Hi everyone ,
I have two question for you !
1- I don't know what 's the difference between the ie.close and the
ie.close if ie.
In the first case if ie is nil (i.e. has not been initilized), then you
will get a missing method 'close' for nil error. In the second case,
ie2.image(:src , /ps_save_button.gif/).click
WIN32OLERuntimeError: Unknown property or method `document'
HRESULT error code:0x80010108
The object invoked has disconnected from its clients.
from C:/apps/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1145
/./watir.rb:1655:in
Ajitesh Srinetra wrote:
Hi all
In My testcases I created a wrapper around Watir.rb
def login(ie,username,password)
ie.text_field(:name, ranger_user[name]).set(username)
ie.text_field(:name, ranger_user[password]).set(password)
ie.button(:name, commit).click
John Lolis wrote:
I don't feel that its a problem Watir needs to solve. If the community really
did want some framework I think it would be a project separate from Watir.
I'm not even sure a project like that would work. Every application that
needs testing is probably going to need a
MadNut wrote:
language = javascript
script = some script
ie = IE.attcah(...)
window = ie.document.parentWindow()
window.execScript(script, language)
Actually i was curious to know that the javascript looked like.
___
Wtr-general mailing list
Cylindric wrote:
I'm not entirely sure what you mean by being unable to reference scripts, but
I split my tests into:
1 script with helper functions such as GoToURLAndExpectText for example
1 script with the header type declarations in it, URL's, usernames etc
X several scripts with various
Nick Sieger wrote:
Slightly shameless plug -- you might be interested in my CI::Reporter
[1] package that I released recently.
[1] http://caldersphere.rubyforge.org/ci_reporter
Yes, thanks, it looks good, and i plan to install it this week.
Apparently it is the annoited successor to
My best guess is the problem is with the data.set command. Watir just
jams the argument into the value parameter, whereas most pages have a
bunch of validation code that runs on it first. In other words, it is
likely that Watir is NOT running this validation code. If there is a
problem with
Here is a clever and elegant solution:
http://dannorth.net/2007/02/monkey-business-value
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
p.s. As a variant, I resolve this problem by executing that script
directly via ExecScript() from ie window. Maybe, anybody can tell a
better way.
Could you share this with us?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
[EMAIL PROTECTED] wrote:
does anyone know if Watir would run on a SmartClient, that uses IE dlls?
It probably wouldn't be hard to reuse 95% of watir, but you would have
to make some modifications to the IE class.
___
Wtr-general mailing list
Settle down. He's only trying to help.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Jim Hollcraft wrote:
IE.new_process appears to fail under windows 2003 64-bit. IE.new works fine.
I'm pretty sure this isn't an issue with my code since the exact same code
works great under 32 bit versions of both windows 2003 and windows XP.
Any suggestions?
What error are you getting?
Charley Baker wrote:
I've been using test unit reporter for some time. I just tried to look
up the page on Rubyforge for a friend and now I'm getting an Invalid
Project page at http://rubyforge.org/project/test-report/
http://rubyforge.org/project/test-report/ and the project site
listed
Federico Vela wrote:
Hi Bret,
Thanks so much for your reply and sorry for not posting that code initially.
mainFrame.link(:url,%r{Report\.asp}).click
mainFrame.button(:name,cmdGo).click
mainFrame.text_field(:name,txtInitialDate).set(2/10/2006)
mainFrame.link(:id,ViewReport).click
barry wrote:
This link is broken. Can someone fix this?
http://wtr.rubyforge.org/s101/doc/exercises/web-services-lab.html
It is here:
http://wtr.rubyforge.org/s101/exercises/web-services-lab.html
___
Wtr-general mailing list
The error will go away if you upgrade to Watir 1.5.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Federico Vela wrote:
I know document.all is not the greatest of functions but it is how the
application is working currently and I do not have the option of changing the
source code... any ideas???
Can you show us the watir code that triggers this error?
Federico Vela wrote:
I will upgrade to watir 1.5, but in the meanwhile i will comment out the
add_checker( navigation_checker ) line.
What exactly does this function do? Actually my question is, how safe is it
to uncomment?
The navigation_checker automatically raises exceptions when you
This would be a great topic to discuss on ruby-talk (aka
comp.lang.ruby). I'm sure you'd get lots of suggestions.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
By the way, this problem looks like it is related to
http://jira.openqa.org/browse/WTR-94
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
101 - 200 of 993 matches
Mail list logo