Interesting, I'm using Watir 1.5.1.1161 and getting a different error. A
Win32OLERuntimeError, bombing out with unknown property or method
'readyState' which makes sense since we're calling readyState on the
document. I can get the url of the ie object, but obviously since it's not
an html page
You'd need to post how you're getting to the window for anyone to be able to
help, watir version would be good as well.
-Charley
On 3/20/07, sathees [EMAIL PROTECTED] wrote:
Hi,
I am running a watir script that saves images. Runs fine except it hangs
at save window some time. Waiting for me
There doesn't appear to be anything inherently useful without looking at the
actual api. Btw, I'd highly recommend this library when looking at win32ole
objects, it's pretty slick:
win32ole pretty print
http://rubyforge.org/projects/win32ole-pp
If you do use the win32ole pretty print library you
If it has a javascript onmouseover event associated with it, you could fire
that event first and then get the controls.
ie.span(:class, 'popup_link').fire_event('onmouseover')
now interact with the controls on the rendered form.
Hopefully that helps.
-Charley
On 3/16/07, Naga Harish
Watir's modal_dialog works with Ruby 1.8.2 only currently. Otherwise,
everything else should work fine.
-Charley
On 3/14/07, Max Russell [EMAIL PROTECTED] wrote:
Any early birds tried this out? If so, have any changes had an impact on
Watir?
I'm a bit of a lurker when it comes to
Some html sample code would be helpful.
-c
On 3/13/07, Mathew Jacob [EMAIL PROTECTED] wrote:
Hi,
I have one scenario that buttonmenu and two items in that buttonmenu.
What is the command to select item in buttonmenu. Please guide me.
Regards,
Mathew
* *
*Ya**ho**o India,
I do believe I know the company and would highly recommend anyone interested
checking it out.
-c
On 3/12/07, Bob [EMAIL PROTECTED] wrote:
National retailer has an immediate need for a test engineer with
experience in Ruby/WATiR.
Work on a very high profile J2EE based Ecommerce effort. Lead
There's not an execution control variable, but instead of sleep which is
unreliable, the best bet when using Watir 1.5 is to use the wait_until
method.
For example,
do something
wait_until{ ie.button(:value, 'Click Me').exists?) # poll for some
control to show up with defaults of
Hey Jeff,
I'm not able to get to the site you have listed in your test, seems the
url might be local to your internal network? When you include
unittests/setup there's a line at the beginning there: END {$ie.close if
$ie; Watir::IE.quit} which closes ie when your tests are done running.
Hi Mike,
When you're using AutoIt, you're working with windows controls, not html
elements per se. There's no way that I'm aware of that you can easily get
the html element id using AutoIt. It recognizes windows, controls and
identifies them by using Window handles, text and the like. There's
/show_login_pagehttp://carolinerr.realgirlsmedia.local/public/login/show_login_page
Jeff
On 3/8/07, Charley Baker [EMAIL PROTECTED] wrote:
Hey Jeff,
I'm not able to get to the site you have listed in your test, seems
the url might be local to your internal network? When you include
unittests/setup there's
did using 'label_user_email' give the error
it did, rather than just telling me that the object was not found?
Jeff
On 3/8/07, Charley Baker [EMAIL PROTECTED] wrote:
Had to change the id's you were using to access the html elements, this
should work:
require 'watir'
include Watir
require
It's not really a Watir thing more of a test unit issue. You just need to
require 'test/unit/assertions' and may want to include the Assertions
module.
Something like the following:
So it's
===
require 'includeFirst'
require 'test/unit'
I'm not sure why you can't access those links, I just went to both of them
and the pages opened fine. Can you access them through the main site?
http://www.openqa.org/watir and follow the links to FAQ and/or wiki.
-c
On 3/6/07, swarna latha [EMAIL PROTECTED] wrote:
Hi,
I am unable to access
This is really more about test::unit than Watir. Watir doesn't report
results or contain your tests, test unit does. You could modify the test
reporter in test unit if you want more immediate feedback. Running through
Eclipse with the ruby plugin also gives more immediate feedback I believe,
it's
I can only assume there are some timing issues. I'd recommend using a more
recent version of Watir which you can pull from the home page on openqa:
http://www.openqa.org/watir or build your own from the repository which is
on the FAQ page under Installing a Gem from the latest development source.
You didn't say there was an error or anything went wrong. I'd recommend ie
developer toolbar over show_all_objects. The link is on the FAQ site.
Otherwise, are you having problems?
-Charley
On 3/7/07, matt [EMAIL PROTECTED] wrote:
I am a new user to ruby/watir as well...maybe we can get
Hi all,
I'm having a bit of trouble accessing menu drop downs which are created by
using ie's createPopup method. I've got an application that has some divs,
which then get shoved into the content of a popup/menu item.
div myonclick=parent.callFunction('foo';'something'), .
On clicking
There are quite a few ways to do this, here's one using expand_path:
f = File.dirname(__FILE__) # get your test directory
puts File.expand_path(#{f}/..) # get the directory above your test
directory
-Charley
On 3/5/07, Jason He [EMAIL PROTECTED] wrote:
Dear all,
I
Strange, I tried the example from Jonathan Kohl, and it worked fine.
The idea in Ruby is that variables hold references to objects not the
objects themselves similar to Java. If you've worked in c/c++ this will make
more sense, Ruby, Java and some other languages hide the ugliness of this
under
Sure, read the documentation for Ruby Exception class on rubydoc:
http://www.ruby-doc.org/core/
The first listed method is backtrace which has filename:lineno
def method_foo
begin
f = File.open('/some/non-existent/file')
rescue
puts Message: + $!.to_s
$!.backtrace.each {|l| puts
Hey Angrez,
I'd be more than happy if you were to add this to the FAQ.
-Charley
On 3/2/07, Angrez Singh [EMAIL PROTECTED] wrote:
Hi,
This question has been asked couple of times in this list. You can search
the archives for the answers/code snippets etc.
Bret:
I think we should add this
Hi Harish,
You can use test-report or ci-reporter on rubyforge to output your
results. My tests are hooked up through Cruise Control on a continuous
integration server which picks up the reports, sends out email and can also
display logs in the Cruise Control build artifacts on the ci box cc
Try using the ie developer toolbar. I've finally added this to the Watir FAQ:
http://wiki.openqa.org/display/WTR/FAQ#how-to-identify-html-elements
-Charley
-
Posted via Jive Forums
The access denied errors will no longer show up with the latest code in
trunk. It's now swallowing all the access denied errors as a temporary work
around.
There's a possible solution used by Colin Neller in Watin(.net version of
watir):
You might try looking at the DOM that's output with IE developer toolbar:
http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en
This is what Watir and the end user are seeing. The asp code is still
sending html output to the browser.
I guess I'm not too surprised, its been a long time since there's been any
active development on the project, it is definitely a big void to fill
however.
Nick, glad to hear about ci reporter, I will definitely be taking a look at
it. I'm currently using the xml output of test runs through test
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/ and the project site
listed in the readme for test-report. Sending a message to Alexey about it,
It's a javascript dialog, one answer is in the FAQ link in the previous
post. Is this not working for you?
-Charley
On 2/13/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
Hi, I too have the same problem, ,, This is my html..
a href=/login/logout onclick=return confirm('Are you sure you
If this is a javascript popup you can take a look at the FAQ
http://wiki.openqa.org/display/WTR/FAQ for handling javascript popups.
Otherwise if this is an IE specific modal dialog, then using watir 1.5.1 you
can access the modal_dialog through your ie object. Let us know if either of
these two
Zeljko,
The arguments are a hash. Ruby implicitly creates a hash when they're sent
in. I'm not sure how it's not working for you. Try a simple example:
require 'test/unit'
class HashArgs Test::Unit::TestCase
def test_args
implicit_hash(:foo = 'bar', :other_foo = 'other_bar')
end
def
Add a require for test unit at the top of the file:
require 'test/unit'
-c
On 2/8/07, Lauren [EMAIL PROTECTED] wrote:
Wow Carl,
What an awesome reply. I got code!! :)
No doubt I'm still doing something wrong...I'm getting the following error
when I run the code on my box though:
ruby
Thought i remembered it from the Pickaxe book, guess I did. :) If you check
out the bottom of the page on this link:
http://www.rubycentral.com/book/tut_methods.html
you'll find a reference to it - Collecting hash arguments. Passing curly
braces to a method can get confused with blocks, so this
well, I'm not sure i fully understand what you're looking for but you have
some pseudocode:
open list
go through names
move to next record if person has no name
otherwise see if record is found
if record is found then wait a long time#this seems odd, but not
knowing your business domain,
Agreed, nice nit. :) You can pick at the file line by line or if using YAML
as Richard mentioned, as a document by document separated in yml by dashes.
-c
On 2/8/07, Chris McMahon [EMAIL PROTECTED] wrote:
I'll pick one nit here:
lineArray = IO.readlines( myFile.path )
lineArray.each{
Take a look at the documentation for test/unit:
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html
The method to run the test suite should be outside your test suite class.
TestSuite also doesn't have setup and teardown methods, those are test case
methods. No reason to
Paul,
I committed the change in svn after testing it on IE6 and IE7.
-Charley
On 1/30/07, Bret Pettichord [EMAIL PROTECTED] wrote:
Paul,
Please go ahead and commit this change.
Bret
-
Posted via Jive Forums
There are some sample programs using the com binding on Techsmith's website
and minimal COM api docs. You might also take a look at Aslak Hellesoy's
screenshot library for Ruby:
http://blog.aslakhellesoy.com/articles/2006/12/02/getting-screenshots-from-watir
-Charley
On 1/30/07, david goodine
Good point, I'm looking at a good way to tell if the navigation fails in
IE7. So far the best way I can find is to check the url for
res:///dnserror.htm There may be other pages that get used for other
errors though - 500 responses, etc.
I'm using two machines to test. There is however, some
Noticed that too, but Watir does store it in the @url_list in the wait
method before it calls run_error_checks. Which would require checking the
url on the unless condition to add res errors regardless of already in the
list.
-c
On 1/31/07, Paul Rogers [EMAIL PROTECTED] wrote:
i looked at the
Windows 2000 to do the test? (As we known Windows 2000 doesn't support IE 7)
Regards,
Jason
--
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Charley Baker
*Sent:* 2007年1月26日 13:17
*To:* wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] How
I'm not sure I understand what you're saying, but the function of
click_link_with_text in Watir Simple is to click a link with the given text.
If it's not working the way you expect, you could provide more details?
-Charley
On 1/25/07, Andrew [EMAIL PROTECTED] wrote:
Hi
Can i use
You can use either/or. I'm working with AutoIt internally on our own version
based off of WindowHelper which uses AutoIt. The only trick is adding
support for IE 7, which instead of using popups, opens a new tab.
-Charley
On 1/24/07, Jason He [EMAIL PROTECTED] wrote:
Hi,
I'm using https to
Take a look at the watir examples directory. You'll find a logging directory
with test_logger1.rb and example_logger1.rb.
-Charley
On 1/19/07, Maloy kanti debnath [EMAIL PROTECTED] wrote:
Hello Ogre,
Thank you for your correct answer. If you also tell us whether there is a
default 'log' in
Try something like this:
ie.link(:url, /some regex to match/).click
-Charley
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote:
Hi all,
How to click on the links based up on the href rather than the text?
Ex:: I am having the same text with different ids. i.e., we are having
30
We used JRuby internally for access to a 3rd party search library. It works
great for creating and using java objects which may live on your middle
tier. I haven't spiked anything externally, but let me know if you have any
specific questions.
-c
On 1/19/07, Chris McMahon [EMAIL PROTECTED]
Take a look at dbi, you can use odbc to connect to Access:
http://rubyforge.org/projects/ruby-dbi/
Tutorial:
http://www.kitebird.com/articles/ruby-dbi.html
-Charley
On 1/10/07, Maloy kanti debnath [EMAIL PROTECTED] wrote:
hi,
I am not able to connect with Microsoft Access database ..
From command line in the Watir directory where the AutoIt dll lives, run
regsvr32 AutoItX3.dll
-Charley
On 1/10/07, Paul Carvalho [EMAIL PROTECTED] wrote:
And you do this how...? Perhaps you should include a link, reference or
example of how to do this in your response.
On 10/01/07,
In the readme file there is an installation section:
== Installation
Download and unpack the Test::Unit::Reporter. Change to the root user if you
are on *nix. Issue the following commands:
ruby setup.rb config
ruby setup.rb install
Run those commands at the command line.
-Charley
On 1/4/07,
the following
to try it out.
require 'watir'
require 'watir_ext'
include Watir
ie = IE.new
ie.goto(www.someplace.com)
button = ie.button(:id, 'somebutton')
if button.visible?
button.click
else
ie.close
end
-Charley
On 12/21/06, Charley Baker [EMAIL PROTECTED] wrote:
There's a user contribution
I've done it in two ways. Call ie.goto on the link that the menu item points
to, kind of cheating, but it works for testing one of my apps. The other
option is to fire a javascript event which generally brings up a hidden div
or something of the like.
ie.link(..).fire_event('onClick')
Of *Charley Baker
*Sent:* Tuesday, January 02, 2007 2:38 PM
*To:* wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] Give a solution fo javascript popup
Mark,
You mind posting that to the FAQ site? Definitely an FAQ and then you or
anyone can send out the url.
-Charley
On 1/2/07, *Cain
Hey Nathan,
Would you like to add this to the FAQs or the general Watir documentation?
-Charley
On 1/2/07, Nathan [EMAIL PROTECTED] wrote:
So I will assume that you are talking about a menu that when your cursor
is over it, the menu drops down or appears, and then you can click on a
link, is
Include them in a test suite and use test unit report:
http://test-report.rubyforge.org/. You can report out like junit tests in
html or xml. I'm glad you are expecting the best solution.
-Charley
On 12/28/06, kim [EMAIL PROTECTED] wrote:
Suppose In a project I wrote many rb files.
I want to
You might need to register the dll. Open a command prompt where
AutoItX3.dllis installed. From the gem install you'll need to go to
{ruby_install}\lib\ruby\gems\1.8\gems\watir-1.5.1.1135\watir where you'll
find the dll and then run regsvr32 AutoIt3X.dll
-Charley
On 12/22/06, Galina Maralina
Sending some of your script and html snippets might help. I'm using maximize
pretty extensively and haven't run across any problems.
-Charley
On 12/24/06, liucongying [EMAIL PROTECTED] wrote:
I have finished my script,but I met a problem : if I put the
$ie.maximize in the login page, I login
Not sure why you're having problems with show_links. Are you trying to
show_links in a modal dialog? More specifics would be helpful. My only guess
without more information could be the version of Ruby you're using. You
might try rolling back from Ruby 1.8.5 to 1.8.2.
-Charley
On 12/25/06,
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Tuesday, December 26, 2006 10:40 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Problem with Autoit?
Charley Baker wrote:
You might need to register the dll. Open a command prompt where
AutoItX3.dll
Change your system call to call rubyw which won't open a command window:
c = start rubyw #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime}
Here's more information in the Pickaxe book:
http://www.rubycentral.com/book/win32.html
-Charley
On 12/21/06, VIKASH KUMAR [EMAIL PROTECTED]
Agreed: http://jira.openqa.org/browse/WTR-121.
On 12/20/06, Charley Baker [EMAIL PROTECTED] wrote:
Ah, you're adding it to the IE class, which in Watir 1.4.1 was a super of
Frame. In 1.5.1, Frame doesn't inherit from IE, but does include Container
and PageContainer as mixins. You'll want
Google is your friend, searching for watir javascript dialog, this is the
first link:
http://www.hanselman.com/blog/ClickingAJavaScriptDialogUsingWatir.aspx
-Charley
On 12/20/06, liucongying [EMAIL PROTECTED] wrote:
I use ruby185-21 and watir-1.5.1.1127.gem, I want a solution fo js pop the
There's a user contribution on the Wiki:
http://wiki.openqa.org/pages/viewpage.action?pageId=1119that extends
element to walk the DOM tree and check for disabled or non-visible elements.
-Charley
On 12/21/06, Paul Rogers [EMAIL PROTECTED] wrote:
didnt some one post a is_visible? ( or
You're calling straight into the document ole object, Watir shouldn't be
doing anything but passing the call on to IE. What error are you getting?
Are you running the scripts on the same box with different version of Watir
and seeing it fail?
-Charley
On 12/20/06, Max Russell [EMAIL PROTECTED]
Ah, you're adding it to the IE class, which in Watir 1.4.1 was a super of
Frame. In 1.5.1, Frame doesn't inherit from IE, but does include Container
and PageContainer as mixins. You'll want to change your run_script method to
the Container namespace:
module Watir::Container
def run_script
Yes, no, maybe. :) Simple answer. I'm using Watir tests, and running them
through Cruise Control, so that they're continuous integration tests,
reports generated through http://test-report.rubyforge.org/. xml reports,
cruise picks them up since they're xunit style and publishes them out.
Cruise
Do you need to control left click or simply go to a new url? I'm going to
new urls for a lot of the dropdowns in one of my apps, skipping the click.
-c
On 12/19/06, Dave Munns [EMAIL PROTECTED] wrote:
I have seen examples that double click on an object (
fire_event(onDblClick) ),
but have
Try this:
require 'watir'
test_site='C:\\aa.htm'
ie=Watir::IE.start(test_site)
ie.span(:id,tradeDate).text_field(:index,2).set(01/01/2000)
The confusion lies in trying to set a text field among two that have the
same value, one being hidden.
-Charley
On 12/18/06, VIKASH KUMAR [EMAIL
Ruby's require is case sensitive. Whether that's a good thing or not, it's
something to be aware of when requiring files. Require will load a file into
your ruby space once whether it's a ruby file or a dll or other binary
library, load is another method that will pull the file in everytime it's
Shouldn't happen if you type
require 'watir'
Note the casing. require should load files once, if, however, you change the
casing then you will load the same file multiple times.
-Charley
On 12/7/06, John Lolis [EMAIL PROTECTED] wrote:
just for fun i opened up the irb and did the following
Chris has some salient points. Another advantage of using a delimited file
that you can use through Excel is version control. Using a delimited file
makes it easier to diff and/or merge through Subversion or whatever your SCM
tool might be as opposed to using an Excel file.
-Charley
On 12/6/06,
A snippet or use the IE developer toolbar to see what attributes in the
generated DOM you might have access to:
http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en
-Charley
On 12/6/06, Christian Baumann [EMAIL PROTECTED] wrote:
Hi,
what
Hey Philip,
Java applet - no, Flash - no. These are embedded objects which IE really
has no insight into. Form generated by Javascript - yes. This is what Watir
deals withthe generated DOM. I'm not yet convinced there's no way to
access the form elements in this particular scenario.
Hi Lisa,
I haven't worked with Vista and IE7, I'm trying to get a box set up with
that now. Your report gave me a nudge to set it up. The rpc server errors
you're seeing are due to closing the browser, which unfortunately doesn't
give a good indication of what's going wrong. I don't think the
This is a known issue with Watir and Ruby 185, this will work with
Ruby 182, the Jira issue is here:
http://jira.openqa.org/browse/WTR-86
-Charley
On 11/29/06, vijay [EMAIL PROTECTED] wrote:
Hi people,
My name is Vijay. I am new to Watir. Occasionally, while playing back the
script, which
with any additional information. I'll keep poking
around.
-Charley
On 11/29/06, Željko Filipin [EMAIL PROTECTED] wrote:
On 11/27/06, Charley Baker [EMAIL PROTECTED] wrote:
I just ran through the same steps you list below and didn't have a
problem. The use of autoit for controlling the window state
Zeljko,
I just ran through the same steps you list below and didn't have a
problem. The use of autoit for controlling the window state of ie
hasn't changed for quite some time and should be installed as part of
your install. Is it working with previous gems on the same machine?
-Charley
On
I don't have access to a Vista system and haven't tried running
scripts on it. What scripts are you trying to run and where is the
error? Does this happen if you simply open irb and do something like
this:
irb require 'watir'
irb include Watir
irb ie = IE.start('http://www.google.com')
Or is
Dou,
There are a lot of libraries for Ruby that you can use along with
the Watir libraries for other pieces of your testing. If you're
looking for telnet for example you might want to take a look at Ruby's
builtin net/telnet documentation:
than using
the userAgent
Its in Jira, WTR-116
Paul
- Original Message -
From: Charley Baker [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Wednesday, November 15, 2006 12:51 PM
Subject: Re: [Wtr-general] detecting versions of browser and os
Paul,
I'm not currently
You can use an approach similar to the Element#visible idea in the
user contributions portion of the wiki site if you really need to.
http://wiki.openqa.org/pages/viewpage.action?pageId=1119.
The ole object is there and you can query it to get the parent if need
be. Otherwise, using Watir 1.5.1.x
Paul,
I'm not currently testing with IE 7 but most likely will be soon,
particularly since the upgrade is part of the system updates which
means the user base will expand quickly. Can you add a JIRA task for
this?
While the browser version makes sense in context of the ie object,
the os
I updated winClicker, removing returns from the enum procs for
getChildHandle and getWindowHandle, returning to the changes that had
been made in build 1070. Let me know if this is working any better for
you. This is the downside of not having unit tests and as Bret said
why this is basically
Hey Christian,
Try something along these lines:
irb(main):019:0 require 'watir'
irb(main):019:0 include Watir
irb(main):019:0 ie = IE.start('http://www.google.com')
= #Watir::IE:0x2f2c480
# Get the table cell, pull the first link's href, there are a few
links in this cell
irb(main):020:0
Sure, here's a simple example:
require 'watir'
include Watir
ie = IE.start('http://www.gap.com')
redir = ie.url
puts redir
= http://www.gap.com/browse/home.do
-Charley
On 10/23/06, Lennon [EMAIL PROTECTED] wrote:
Is it possible to store a url that I have been redirected to by my webapp as
That's pretty much it. You've got and ending slash and a beginning on
your strings which will make http://www.google.com//intl/en/about.html
Otherwise it seems fine, is there some problem you're encountering?
-Charley
On 10/3/06, Astha Raj [EMAIL PROTECTED] wrote:
Hi All,
This is what I want
Chris,
I took some liberties with your test and checked the files into svn.
Added id to iframes_test.html as you mentioned, changed the test to id
strings, and added it to frame_test.rb. Hope you don't mind and thanks
for the prodding. The test now fails with
1) Error:
Original Message
Subject:Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia
entry
# To handle general popups, use WinClicker.
ie.button(:name, btnG).click_no_wait # ensure popup won't block Watir
hwnd = ie.enabled_popup(5) # get a
If it's simply disabling/enabling the button element then you can do:
$ie.button(:name, clickme).enabled?
to check whether it's enabled or not.
-Charley
On 9/28/06, David Munns [EMAIL PROTECTED] wrote:
With ruby/watir, is there a way to detect if a button has been disabled?
If you look at the FAQ: http://wiki.openqa.org/display/WTR/FAQ, there
are two possible solutions mentioned in the 2nd entry: Handling
Javascript Pop-up Windows.
-Charley
On 9/26/06, Mayank [EMAIL PROTECTED] wrote:
How to click Ok button in javascript pop-up?
If you look above to Mark's post you'll see he's already posted the answer. To
select by index in a select list:
choices = $ie.select_list(:name,'language').getAllContents
$ie.select_list(:name,'language').select(choices[0])
getAllContents returns the contents as an array after which you can
Short answer -- it's a button and has other attributes that you need
to use, name, src, id... something:
input type=image name=clickme src=clickme.gif
$ie.button(:name, 'clickme').click
or
$ie.button(:src, /clickme/).click
It's in the FAQ and the user guide both slightly indirectly,
User Guide in
Zeljko,
Go ahead and open up a Jira ticket for this. It looks like
filefield_test.rb in the unittests is also failing for me.
Thanks,
Charley
On 9/26/06, Zeljko Filipin [EMAIL PROTECTED] wrote:
I have just installed watir 1.5.1.1100. I have ruby 1.8.4 (2006-04-14)
[i386-mswin32].
I have
You can also use Ruby's Net Http standard library if you just want to
do a simple file download:
require 'net/http'
Net::HTTP.start(www.ruby-lang.org) { |http|
resp = http.get(/images/logo.gif)
open(rubylogo.gif, wb) { |file|
file.write(resp.body)
}
}
-Charley
On 9/25/06, Luke [EMAIL
Something like this:
$ie.table(:id, 'table_id')[2][4].link(:url, /part_of_link/).click
where 2 refers to the 2nd row and 4 is the 4th cell in that row,
replace with whatever row/cell you're looking for. The :url in link is
looking for some text (part_of_link) that's contained in the url for
I've never had this error, but there are a couple of threads on the
mailing list which might help you out:
http://www.mail-archive.com/wtr-general@rubyforge.org/msg04445.html
http://www.mail-archive.com/wtr-general@rubyforge.org/msg03870.html
-Charley
On 9/22/06, [EMAIL PROTECTED] [EMAIL
I completely agree. People have to understand that while there are a
lot of great reasons to use 1.5, it is still a work in progress and
does take a higher level of skill and for lack of better terms,
personal discovery, to use.
-Charley
On 9/18/06, Bret Pettichord [EMAIL PROTECTED] wrote:
I've made some suggested fixes in the google examples for non-english
users, Jira ticket: http://jira.openqa.org/browse/WTR-72
Before closing out the ticket, I'd appreciate it if someone with a
non-english system could pull them from subversion, give them a try
and let me know if it works.
Sorry about that Paul. :) I'll give the secret away now just in case I
end up prematurely emailing again:
Kevin Spacey *is* Keyser Soze!
I'll keep it terse and summarize as opposed to rambling as I was
intending with my previous email/manifesto.
As Watir becomes more popular and used by more
Since you're using Watir 1.5, I'd recommend something along the lines of this:
[EMAIL PROTECTED](:name, 'Submit').exist?}
And then click your button. The default timeout on that is 60 seconds
with a half second default on polling.
-Charley
On 9/18/06, Jason Alexander [EMAIL PROTECTED]
You can use sleep, but I'd highly recommend avoiding it where
possible. Why? It's hard coded and it's error prone. wait_until polls
every half second which means you'll get there faster possibly and
then has a timeout in case you can also extend if you need to. sleep
is best avoided in scripts.
101 - 200 of 268 matches
Mail list logo