Use a subversion client: http://subversion.tigris.org/project_packages.html. There are installers and docs including a Windows based explorer client, easy to use and do a checkout on the head revision of Watir.
-Charley On 3/14/06, Zeljko Filipin <[EMAIL PROTECTED]> wrote:
Is there something like "
Hi Chintakrindi, There's a datahandler.rb that's included as part of the Watir installation, I've never used it, but have looked at it and it is a similar approach to the path I took to read data. It should give you some basic guidelines for getting started, you could use it, extend it, or just
You should look at the postings on the mailing list from yesterday and today. The exact same question is being discussed.-Charley On 4/11/06, Anil Kumar Das
<[EMAIL PROTECTED]> wrote:
I am trying to implement data driven testing using xls sheet & watir.
For example:1. I have an xls sheet(c:/info.
+1, agreed, simplifying is a good thing. On 4/29/06, Jonathan Kohl <[EMAIL PROTECTED]> wrote:
+1
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Bret
PettichordSent: April 29, 2006 2:44 PMTo:
wtr-general@rubyforge.orgSubject: [Wtr-general] The Watir
Install
Hrrrm, I'm getting errors running the test, main results: 2 tests, 1 assertion, 1 failure, 1 error. Images are missing on the html page under test: list_matter.html. They all refer to AIMS/images/... Error 1 listed at the bottom.
Here's how I installed: - Deleted Watir and Rexml files from my Rub
I had problems using gem remote installs through a corporate proxy server as well. You can however, just download the watir.gem and from the command line do:> gem install watir.gem in the directory you downloaded the gem into. That should be pretty simple and will be the same process when you want
I use Eclipse with the RDT Ruby plugin: http://rubyeclipse.sourceforge.net/ I use Eclipse for other languages, have a lot of plugins which make my life simpler and of course it's all free. :) The RDT plugin has support for integrated debugging, code completion, code formatting, syntax coloring, T
can i find the error log? Has anyone faced similar problems?
Eclipse version i am using - 3.0.0Ruby Development Tools plugin version - 0.7.0.601192300PRDThanks in advance,Chandan ROn 5/3/06,
Charley Baker <[EMAIL PROTECTED]> wrote:
I use Eclipse with the RDT Ruby plugin: http://rubyeclipse.s
Chris is right, that's a great site and they do have a link to the vba help files which should help with the underlying object model. I've used the usedrange property of the worksheet ole object for rows and columns: rowcount = @
worksheet.usedrange.rows.countcolumncount = @worksheet.usedrange.colu
I'm not sure I understand the gist of your message so this might help or not... You can get runtime debugging, breakpoints, etc by using Eclipse with the rdt (ruby development tool) plugin -- see the previous posts on ides. You can also use the Watir logger or Log4r(
http://log4r.sourceforge.net/)
You can use svn. TortoiseSVN integrates into windows explorer: http://tortoisesvn.tigris.org/Use it to keep in synch with the latest version, do a checkout from
http://svn.openqa.org/svn/watir/trunk/watir into a local directory, and then updates when you want: svn update from a right mouse clicki
Good point, I'm a bit obtuse today. I can add these steps as a FAQ if anyone's interested, or just create a batch file that does the same to update to the latest. -cOn 5/19/06,
Bret Pettichord <[EMAIL PROTECTED]> wrote:
/** replace whatever version you've now downloaded with the right version numb
x27;t have that many requirements.
-Charley On 5/19/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
On 5/19/06, Charley Baker <[EMAIL PROTECTED]
> wrote:
Good point, I'm a bit obtuse today. I can add these steps as a FAQ if anyone's interested, or just create a batch file that does
I've just updated the FAQ with instructions to checkout the latest trunk source and install the gem: http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem Worked on it a couple of days ago and got my wiki session dumped, so finally got back to it. I'll update it for the one click installer issue menti
Aidy, You can use the Internet Explorer developer toolbar to view objects and the DOM for a page:
http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en-CharleyOn 5/26/06, Adrian Rutter
<[EMAIL PROTECTED]> wrote:
Hi,I am trying to locate som
I'd say like this seems like a really bad idea, automation code smells. Why do you
need human intervention? While it's possible to beep, pause, throw up a
dialog, whatever else, while waiting for people to interact with the
environment, it doesn't really make for automated tests that can run
with a
Sorry if I came across a little too harsh, I'm blaming the heat, it's been 90s here for the past week. :) Maybe I'll try to actually be helpful now that I've fallen off my high horse and knocked my head. If your lag time for server cert acceptance is as much as 24 hours and variable within that, yo
I've been using that as well for xUnit style reporting. Highly recommended to make for nice testing reports in Cruise Control or otherwise. Just out of curiousity what changes did he make? It's been a few years since the release.
-CharleyOn 6/6/06, Chris McMahon <[EMAIL PROTECTED]> wrote:
here is
Chris and I were just talking about this yesterday: http://rubyforge.org/projects/test-report/Reports in html or xml. -Charley
On 6/7/06, Adrian Rutter <[EMAIL PROTECTED]> wrote:
Hi,Is there anything about that sits on top of Test::Unit to produce - forexample - html reports, or would it be better
Hey Lonny, Globals in general are best avoided, there are cases where it makes sense, but having been assigned single 40+ page perl scripts and various other projects where just about every variable is a global will pretty much drive that one home. Best to use instance variables when possible, Ru
That's because you're swallowing the exception in your rescue clause. You want it to be raised and caught by Test::Unit so that it can see it for reporting. You need to either get rid of the rescue and ensure blocks or rethrow the exception (in which case you might want to wrap the original excep
Those pages do appear to be autogenerated, as they're not in the website directory.I'll send a message to Patrick to double check and if so, ask that he make the change. -Charley
On 6/17/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
On 6/17/06, Zeljko Filipin <[EMAIL PROTECTED]
> wrote:
at http:/
Agreed, irb gives some spurious messages. You should be able to use it and see the currently installed version by running 'gem list --local watir' sans quotes from a command line.-Charley
On 6/22/06, Chris McMahon <[EMAIL PROTECTED]> wrote:
It's a bogus error. I'm not sure what causes it. Do this
Take a look at winClicker.rb, clickWindowsButton should work, something like this: require 'watir/winClicker'clicker = WinClicker.newclicker.clickWindowsButton('File Download', 'Save')-Charley
On 6/28/06, Andy Case <[EMAIL PROTECTED]> wrote:
Hi,
I get the following
Pop-up from my applicati
You might try reducing your security permissions in ie, modifying the security settings in the advanced tab or include the domains as trusted sites in IE's settings. I'd go backwards to forwards on my suggestions.
-CharleyOn 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Hello,
I'm
Hey Aidy, You can follow the instructions I put on the Watir FAQ wiki page: http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgemMake sure to uninstall the one click installer before installing the gem.
Let me know if you have any problems or questions. -CharleyOn 7/12/06, Adrian Rutter <[EMAIL PROT
Hi Aidy, You can send tabs through AutoIt. Take a look at WindowHelper.rb. You can easily extend it with something like this:class WindowHelper def push_tab @autoit.WinWait "Your dialog title", ""
@autoit.Send "{TAB}" endend-CharleyOn 7/12/06, Adrian Rutter <[EMAIL PROTECTED]
> w
Hi Jatinder, One of the best ways to contribute is to follow the mailing list and post. I've answered some of your points below: On 7/17/06, Jatinder Singh
<[EMAIL PROTECTED]> wrote:
Hi,I have spent around 2+ years working with Test Automation tools, specifically Rational Robot, Rational XDE Te
Hey Aidy, I've been working off of 182, but just moved to 184 last week and everything's working fine. The gem install should install it to your local ruby gems directory, I'm not sure what you mean when you say you installed it to c:\program files\watir, you shouldn't have anything there. You m
Your loop is 0-9 which is 10, your arrays are only 9 items long. You've overshot it by one. for x in 0..8 do...-CharleyOn 7/19/06,
Cain, Mark <[EMAIL PROTECTED]> wrote:You will need to these:
require 'test/unit'require 'test/unit/ui/console/testrunner'require 'watir/testUnitAddons'require 'wat
You can turn off image loading in the ie options dialog under advanced. I'm not aware of any other way to set Watir not to wait for ready state from the browser. -CharleyOn 7/18/06,
David Solis <[EMAIL PROTECTED]> wrote:
I have a problem with a site taking too long to load. I'm hoping somebody ca
Adam, If you want to create a log file look at logger which is a Ruby library, Watir makes use of it in WatirLogger. Otherwise if you're looking for a junit type of test run dashboard and you're using Test::Unit, take a look at Test Unit Reporter:
http://rubyforge.org/frs/?group_id=319It can dum
Ken, You might want to follow the instructions for getting the latest development gem installed: http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem
And if you are working with an IE modal dialog, which you can verify from the html source, it should have a function showModalDialog() for the popup.
I'm assuming you are talking about a java applet. Java applets, Flash controls and the like are not supported by the current version of Watir. Since Watir uses IE through com, embedded objects are visible but there's no interface into their internals.
-CharleyOn 7/21/06, Chintakrindi Meghanath <[E
You could use AutoIt to disable image loading in ie. Take a look at WindowHelper.rb(part of the watir distribution and uses AutoIt) as well as the AutoIt site at: http://www.hiddensoft.com/AutoIt/
-CharleyOn 7/21/06, Xavier Noria <[EMAIL PROTECTED]> wrote:
Is there a way to disable image loading pr
Hey Steve, Honestly that sounds like a defect. That being said, there is no simple way that I currently know of to get around waiting for ie to return a ready state. -Charley
On 7/21/06,
Steve Tangsombatvisit <[EMAIL PROTECTED]
> wrote:
Hi folks,
Relatively new to using Ruby/Watir...
Hey Chintakrinidi, 1.5.1 is currently a development version, you can download a gem from http://wiki.openqa.org/display/WTR/Development+Builds or follow the link on that page to the FAQ to build your own from the latest in source control:
http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem-Charle
I'd recommend you uninstall your previous version if you've used the one click installer for Watir 1.4.1. Gems get installed into your ruby gems directory - ruby_install_directory\lib\ruby\gems\1.8\gems. Read through the FAQ, should help explain some basics.
-CharleyOn 7/31/06, Chintakrindi Meghan
Aidy, I've been using regexs and consistently using the latest releases of Watir. As helpful as it is, I haven't had any problems. Curious error message you're getting, it doesn't look like the regex is not finding the html element, but that it's no longer available. If changing back and forth be
Looks like you have an invalid SQL statement, but without knowing what your query is, we can't really help. If you're using dbi, take a look at this page: http://www.kitebird.com/articles/ruby-dbi.html
Otherwise run the same query against the database through sql plus and see if it works. -CharleyO
Instead of pulling the window path to compare against, we should pull the windows class which for ie should be 'IEFrame', not sure if that that's changed with ie7, but will work with older versions of ie. btw, Bill, if you're posted the exact line from your scripts, then it makes sense, you've miss
Hey Bill, Just curious. It's still hitting anything outside of Internet Explorer in the title, makes sense if your browser is tied to c:\windows or something else, only problem is you're looping through more windows than you need to be, I'm hoping that class identification is more reliable.
I
Hey Andrew, Without seeing the html for the button you're trying to click, this is the general idea, use the src attribute and then best off for a regular _expression_ in the source for what you're looking for.
ie.image(:src, /mybutton/).clickCheers, CharleyOn 8/2/06, Andrew McFarlane <[EMAIL PR
Take a look at this link, you need to use the jcode library for unicode support, that being said, it'll be interesting to see if there are any issues that you might hit in Watir:
http://ruphus.com/blog/2005/06/11/ruby-and-unicode/I personally haven't had the occasion to use unicode in ruby yet.,
Ruby has a builtin library for command line parsing - optparse: http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/index.htmlCommand line processing is straight ruby not watir, will work for what you're looking for.
-Charley On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:Oh, gurus of Wat
quire 'jcode'and trying to send a Unicode stringèoràyields the same SOAP error I've been getting:XSD::ValueSpaceError: {
http://www.w3.org/2001/XMLSchema}string: cannotaccept 'èorà'.On 8/3/06, Charley Baker <[EMAIL PROTECTED]> wrote:> Take a look at this link, you nee
You might also try running ruby with the -Ku option( i.e. ruby -Ku mytest.rb), if you run ruby --help you'll see it listed as an option to ruby for running Kanji code-set. Sorry I couldn't be of more help, I only briefly took a look at some information on it a while back thinking I might have to
Another option is to use the Microsoft Internet Explorer developer toolbar: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
It's one of the best ways in ie to view the dom. -CharleyOn 8/7/06, Nandan <[EMAIL PROTECTED]
> wrote:Is this what
Hi Chintakrindi, You should be able to do this by creating a new WinClicker object: wc = WinClicker.new wc.clickWindowsButton("Microsoft Internet Explorer", "OK")-Charley
On 8/8/06, Chintakrindi Meghanath <[EMAIL PROTECTED]> wrote:
Hi AllI am using the "clickWindowsButton" to handle window
Hi Vikash, You are several ways to do this depending on your particular needs, here's one, add your data directory to your load path in the script you're using: $LOAD_PATH.unshift File.join(File.dirname(__FILE__),'..','data')
This assumes your data directory is one up from the file you're trying
It's a bug in the Watir codebase. As you pointed out, there is a workaround, but it should work with the existing code. It's been reported as a jira issue and we're working on it. -Charley
On 8/8/06, Bach Le <[EMAIL PROTECTED]> wrote:
Rand,ie.button(:src, 'https://www.entertainment.com/images/butto
Hey Aidy, The back method does a straight call to ie's GoBack method, and according to the comments throws that exception only if for some reason it can't go back. If it is going back then you might want to swallow the exception and add an assert for an element on the page that you hoped to go b
I'm not sure I understand your requirement or why you can't do a for loop, here's a quick stab in the dark: ie.text_field(:name, 'user name').set('name' * 5)More information about your situation may get a different and possibly better answer.
-CharleyOn 8/10/06, Mayank <[EMAIL PROTECTED]> wrote:
M
Just as a general reminder to the list. If you're getting the digest version, be careful about sending back the subject header, digest headers are useless in categorizing and threading the emails. The original subject header you're responding to is in the digest, ideally copy/paste that in place of
Hi Manish, I haven't seen any Jira tickets for this particular issue, I was easily able to reproduce it as well. Absolutely go ahead and log the defect and we'll take a look at it. -Charley
On 8/12/06, Manish Sapariya <[EMAIL PROTECTED]> wrote:
Hi,Following code generates Exception.=
James, Watir 1.5 development branch does support modal dialogs. I've been using it for a while with one of the applications I'm testing. If you want to install the latest development version the instructions are on the FAQ page:
http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem-CharleyOn 8/15/06,
Vikas, I'd take it from your message that you want to click on a table cell, not the table unless I'm mistaken. ie.frame(:name,"frameset").frame(:name ,"content").frame(:name,"iframe1").table(:id , 'listTable')[1][6].click
where 1 represents the first row tag and 6 represents the sixth column t
Watir deals with the html of the page, not the http headers. I'm not sure what the hard way is that you're dealing with currently, but you can access most of this information through ruby's net libraries:
http://www.rubycentral.com/book/lib_network.htmlTake a look at the section: class Net::HTTP Th
Hi Manish, I'd recommend you try to limit the exception thrown to the specific one you're looking for and, if possible, narrow it down to a specific method call as opposed to generalizing it to an entire test case. Secondly in your rescue block you can either call an assertion or flunk which will
; matches = body.scan( /http-equiv="{0,1}(.+)"{0,1}/ ) http_equiv = matches[1] || ""
http_equivs[http_equiv] = content if http_equiv != "" metas[name] = content if name != ""end--END--Hope that helps.jdOn Sat, 19 Aug 2006 10:14:27 -0700, Charley Baker
<[EM
Actually I can tell you why this is happening, it's related to the issue I was looking at yesterday, ie.element(:id, 'foo') actually searches by Name:
http://jira.openqa.org/browse/WTR-77 Both are failing in the locate_input_element method. In the case of the Jira issue mentioned abovegetEleme
Hi David, Can you post this to the user contributions wiki page? http://wiki.openqa.org/display/WTR/ContributionsThis is a good example of how to inject additional functionality into Watir.
-CharleyOn 8/23/06, David Schmidt <[EMAIL PROTECTED]> wrote:
I had this same problem, and the problem is
ie.table(:index, 1)[1][2].text where :index is table 1, 1st row, 2nd cell. Take a look through the mail archive, you'll find a lot of information in there.
http://www.mail-archive.com/wtr-general%40rubyforge.org/-Charley On 8/25/06, Cory <[EMAIL PROTECTED]
> wrote:I want to verify that some data a
Eric, Check out the FAQ at: http://wiki.openqa.org/display/WTR/FAQ#FAQ-accessdeniedhth, Charley
On 8/28/06, Eric <[EMAIL PROTECTED]> wrote:
Hi,suppose that I have a site where whenever I do ie.show_frames() gives me something like this:there are 2 frames:frame 1: Access deniedframe 2: Access deni
Hey Mark, It's good you're trying to track down the error by process of elimination, somehow not something that occurs to a lot of people. It's a bit hard to pin down what's happening remotely without some more information. Try posting your script code and possibly some part of the html.
-Charle
You can use something along these lines to load a specifc version of a gem, standard operators apply (>=, <=, etc): require 'rubygems'require_gem 'watir', '= 1.5.1.1079'There's no need to uninstall previous gems if you want to use them.
-CharleyOn 8/31/06, Boyt, Darrel <[EMAIL PROTECTED]> wrote:
It looks like you're still running some files from the 1.4.1 version from site_ruby directory if you look at the path you have below for iedialog.dll. If you've already uninstalled 1.4.1 then make sure to reme the watir.rb
and watir directory from site_ruby and try it again.-CharleyOn 9/7/06, [EMA
In your example you don't mention the text_field anywhere. I just tried this with Watir 1.5.1 lateset development gem and it worked fine: $ie.div(:id, 'text_fields1').text_field(:name, 'div_text1').set("show me the money")
Send an html snippet and your script line if this doesn't work. -Charley
Take a look at the FAQ: http://wiki.openqa.org/display/WTR/FAQ#FAQ-accessdenied-CharleyOn 9/9/06,
Jim Hollcraft <[EMAIL PROTECTED]> wrote:
I am getting 'Access is denied' errors. For simplicity, the problem can be duplicated with cnn.com. See example below. Any suggestions? Thanks.C:\>irbirb(main)
Take a look at Test Report. It will give you html or xml output for your suites: http://rubyforge.org/projects/test-report/I'll add this to the FAQ soon.
-CharleyOn 9/8/06, John Fitisoff <[EMAIL PROTECTED]> wrote:
Is there any way of creating a single log filecontaining the output for an entire te
Sure use Test Unit Report: http://rubyforge.org/projects/test-report/Read the readme for more info. I should add this to the FAQ. -Charley
On 9/12/06, Luke <[EMAIL PROTECTED]> wrote:
I'm writing functional, acceptance tests in ruby for web
application, I use watir library for these tests. Now aft
Done: http://wiki.openqa.org/display/WTR/FAQ#FAQ-reportsThis seems to have come up enough to warrant it's own faq. If it's not clear or some changes are warranted, go to town.
-CharleyOn 9/12/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
Charley Baker wrote:> Sure use Tes
I'm not quite sure what you're doing. You've installed a gem, 1065 according to your email. Which file is ruby complaining about? And why are you copying your files watir and other files? It sounds like you're creating a mess of problems.
Uninstall the 1.4 version if you have it and delete watir.r
require 'stringio' I believe this is fixed in some version of test unit. -CharleyOn 9/13/06, Luke <
[EMAIL PROTECTED]> wrote:I practice at ruby and I've done some example test case,now I would like to create test suite and generate report
can someone look at this code and explain me what's wrong? I
Is this due to RUBYOPT not being set in 184 and 185? On 9/13/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
Allen Zhou wrote:> With Ruby 1.8.4 or 1.8.5, I must wrote as below>
> require 'rubygems'> require_gem 'watir'>I realize Allen is using Watir 1.5, but this will also be a problem for1.4 users.
I added comments and cleaned up the WinClicker code, mostly formatting as I'm not quite sure which methods people are using. The next step would be creating unit tests. -Charley
On 9/13/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
Sun wrote:> OK thank you again. Can you tell me -- where to find g
This sounds like the same idea as Adrian Lewis' post yesterday, about
adding a message to test::unit. There isn't a way to do this through
the test reporter unless you're talking about assertion strings which
can be added to assertion failures. You can also define your own
assertions using assert_b
You can pull watir/Waiter.rb from svn and use it with your current
version, download it into the watir directory alongside the
winclicker.rb file:
http://svn.openqa.org/svn/watir/trunk/watir/watir/waiter.rb
wait until some particular control is accessible before using it. Such as:
require 'watir/w
You've pretty much answered your own question - only null and :title
methods are supported.
modal = ie.modal_dialog # or use the :title location method to find by title
modal.close
Look at modal_dialog_test.rb in the unit tests if you need more
information and examples.
-Charley
On 9/15/06, [
Here's a quick way to get the character set from the meta tags:
ie = IE.start('http://www.yahoo.com')
meta = ie.document.getElementsByTagName( 'meta' ).item(0)
content = meta.getAttribute('content')
content.strip!
content =~ /[\w+\/]\s*;\s*([\w=\-\s]+)$/
charset = $1.split(
>
>
>
>
> -----Original Message-
> From: "Charley Baker" <[EMAIL PROTECTED]>
> Sent: Fri, September 15, 2006 7:25
> To: wtr-general@rubyforge.org
> Subject: Re: [Wtr-general] watir-1.5.1.1081.gem and popups
>
> You've pretty much answered your o
There are examples in watir's unittests, the user guide -
http://www.openqa.org/watir/watir_user_guide.html
There's also some documentation on microsoft's site on html and dhtml:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_
reference_entry.asp
This mail
I certainly don't think the reference here is to the converse of
making Watir an elitist, high cultured, artsy testing tool. :) I'll
refer to popular in this context as widely used. Please read through
my entire post before commenting, revealing secret at the end.
To rephrase the question, I
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. Specific
Mark,
It's still available, but in the watir/contrib directory. In order
to use it, add
require 'watir/contrib/enabled_popup'
to your scripts. This is still a development version and so there will
be some bumps along the way. Sorry about the confusion, I'll try to
make sure changes are documente
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 peo
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]> wrot
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.
-
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:
> Ba
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
the
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 PROTEC
TECTED]> wrote:
> I am pleased to announced that Charley Baker has accepted the position
> of project manager for the Watir project. Charley has been helping the
> project in numerous ways. He made sure that all the open issues were
> migrated and documented in Jira, which allowed me t
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
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 ch
Short answer -- it's a button and has other attributes that you need
to use, name, src, id... something:
$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 the Forms section:
http://www.openqa.org/wati
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 h
> 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)
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?
> _
Watirmaker support belongs in the watirmaker users group or with the
developers of that tool. I'm sorry you've been referred to this list
and ruby general for support on watirmaker - neither are good options
and seems to indicate a lack of support. I don't know much about
watirmaker - which version
1 - 100 of 342 matches
Mail list logo