Re: [Wtr-general] "Download tarball" at svn.openqa.org

2006-03-14 Thread Charley Baker
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 "

Re: [Wtr-general] Using Data from CSV or XLS

2006-04-11 Thread Charley Baker
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

Re: [Wtr-general] data driven testing using WTR

2006-04-11 Thread Charley Baker
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.

Re: [Wtr-general] The Watir Installer

2006-04-29 Thread Charley Baker
+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

Re: [Wtr-general] Tracking down xpath bug

2006-04-29 Thread Charley Baker
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

Re: [Wtr-general] The Watir Installer

2006-05-01 Thread Charley Baker
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

Re: [Wtr-general] [War-general] Ruby IDE

2006-05-03 Thread Charley Baker
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

Re: [Wtr-general] [War-general] Ruby IDE

2006-05-04 Thread Charley Baker
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

Re: [Wtr-general] Working with Excel - how to access the last cell with data in the spreadsheet?

2006-05-12 Thread Charley Baker
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

Re: [Wtr-general] Run time debugging feature

2006-05-16 Thread Charley Baker
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/)

Re: [Wtr-general] Development updates

2006-05-19 Thread Charley Baker
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

Re: [Wtr-general] Development updates

2006-05-19 Thread Charley Baker
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

Re: [Wtr-general] Development updates

2006-05-19 Thread Charley Baker
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

Re: [Wtr-general] Version discrepancy?

2006-05-23 Thread Charley Baker
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

Re: [Wtr-general] Locating HTML objects

2006-05-26 Thread Charley Baker
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

Re: [Wtr-general] Beep for intervention?

2006-06-05 Thread Charley Baker
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

Re: [Wtr-general] Beep for intervention?

2006-06-06 Thread Charley Baker
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

Re: [Wtr-general] Beep for intervention?

2006-06-06 Thread Charley Baker
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

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Charley Baker
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

Re: [Wtr-general] Uses for Watir (was: Re: BUG: New IE windows share session state with existingopen windows)

2006-06-07 Thread Charley Baker
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

Re: [Wtr-general] is not true with assert(ie.contains_text)

2006-06-12 Thread Charley Baker
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

Re: [Wtr-general] CVS download

2006-06-19 Thread Charley Baker
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:/

Re: [Wtr-general] Issue with gem 1.5.11037

2006-06-22 Thread Charley Baker
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

Re: [Wtr-general] File Download Pop-Ups

2006-06-29 Thread Charley Baker
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

Re: [Wtr-general] Can I get rid of the Can I get rid of the "This page contains both secure and nonsecure items" warning? warning?

2006-07-10 Thread Charley Baker
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

Re: [Wtr-general] svn download

2006-07-12 Thread Charley Baker
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

Re: [Wtr-general] Sending Tabs

2006-07-12 Thread Charley Baker
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

Re: [Wtr-general] Including Features of Universally used commercial test automation tools.

2006-07-17 Thread Charley Baker
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

Re: [Wtr-general] svn download

2006-07-17 Thread Charley Baker
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

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Charley Baker
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

Re: [Wtr-general] Page Loading Problem

2006-07-19 Thread Charley Baker
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

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Charley Baker
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

Re: [Wtr-general] Attaching a Popup

2006-07-20 Thread Charley Baker
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.

Re: [Wtr-general] Testing of the Java Client (which opens in browser) Application

2006-07-21 Thread Charley Baker
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

Re: [Wtr-general] how to disable image loading

2006-07-21 Thread Charley Baker
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

Re: [Wtr-general] Setting a timeout on ie.goto()?

2006-07-21 Thread Charley Baker
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... 

Re: [Wtr-general] Watir - 1.5

2006-07-31 Thread Charley Baker
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

Re: [Wtr-general] Watir 1.5

2006-07-31 Thread Charley Baker
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

Re: [Wtr-general] RegEx && 151.1054

2006-08-01 Thread Charley Baker
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

Re: [Wtr-general] Anybody tried using database with watir scripts?

2006-08-02 Thread Charley Baker
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

Re: [Wtr-general] Attaching to windows problem

2006-08-02 Thread Charley Baker
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

Re: [Wtr-general] Attaching to windows problem

2006-08-02 Thread Charley Baker
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

Re: [Wtr-general] How to use it in Watir?

2006-08-02 Thread Charley Baker
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

Re: [Wtr-general] Watir utf-8 support ( japanese support )

2006-08-03 Thread Charley Baker
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.,

Re: [Wtr-general] Named Command Line arguments

2006-08-03 Thread Charley Baker
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

Re: [Wtr-general] Watir utf-8 support ( japanese support )

2006-08-03 Thread Charley Baker
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

Re: [Wtr-general] Watir utf-8 support ( japanese support )

2006-08-04 Thread Charley Baker
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

Re: [Wtr-general] Writing the output of show all objects to a file

2006-08-07 Thread Charley Baker
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

Re: [Wtr-general] undefined method - clickWindowsButton

2006-08-08 Thread Charley Baker
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

Re: [Wtr-general] problem in opening a file

2006-08-08 Thread Charley Baker
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

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Charley Baker
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

Re: [Wtr-general] ie.back

2006-08-10 Thread Charley Baker
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

Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Charley Baker
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

[Wtr-general] Digest headers

2006-08-11 Thread Charley Baker
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

Re: [Wtr-general] ie.minimize broken in 1.5

2006-08-12 Thread Charley Baker
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.=

Re: [Wtr-general] Solution for accessing showModal Dialogs yet?

2006-08-16 Thread Charley Baker
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,

Re: [Wtr-general] unable to click tables

2006-08-17 Thread Charley Baker
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

Re: [Wtr-general] get the meta tag out of a page

2006-08-19 Thread Charley Baker
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

Re: [Wtr-general] ruby test unit, recovering from failure

2006-08-19 Thread Charley Baker
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

Re: [Wtr-general] get the meta tag out of a page

2006-08-20 Thread Charley Baker
;   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

Re: [Wtr-general] Setting Textbox throws unknown

2006-08-22 Thread Charley Baker
  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

Re: [Wtr-general] Determining if control is hidden

2006-08-23 Thread Charley Baker
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

Re: [Wtr-general] ie.contains_text question - data verification

2006-08-25 Thread Charley Baker
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

Re: [Wtr-general] Frames: Access Denied???

2006-08-28 Thread Charley Baker
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

Re: [Wtr-general] Error clicking a button...

2006-08-31 Thread Charley Baker
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

Re: [Wtr-general] Question - How to use different installed versions of WATiR

2006-08-31 Thread Charley Baker
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:

Re: [Wtr-general] Hi watir problem

2006-09-07 Thread Charley Baker
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

Re: [Wtr-general] Inputing text into a that is contained within a

2006-09-08 Thread Charley Baker
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

Re: [Wtr-general] Access is Denied

2006-09-08 Thread Charley Baker
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)

Re: [Wtr-general] Question about Test::Unit and logging

2006-09-08 Thread Charley Baker
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

Re: [Wtr-general] export test results

2006-09-12 Thread Charley Baker
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

Re: [Wtr-general] export test results

2006-09-12 Thread Charley Baker
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

Re: [Wtr-general] Another question about "no such file to load -- watir (LoadError)"

2006-09-12 Thread Charley Baker
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

Re: [Wtr-general] creating test suites

2006-09-13 Thread Charley Baker
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

Re: [Wtr-general] Another question about "no such file to load -- watir (LoadError)"

2006-09-13 Thread Charley Baker
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.

Re: [Wtr-general] Handling (Browser Security Driven?) Modal Dialog

2006-09-13 Thread Charley Baker
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

Re: [Wtr-general] test_output

2006-09-14 Thread Charley Baker
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

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-14 Thread Charley Baker
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

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread Charley Baker
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, [

Re: [Wtr-general] Watir and code page checks

2006-09-15 Thread Charley Baker
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(

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread Charley Baker
> > > > > -----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

Re: [Wtr-general] HOW TO READ DOM elements from Watir

2006-09-15 Thread Charley Baker
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

Re: [Wtr-general] Do you want Watir to be more popular?

2006-09-15 Thread Charley Baker
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

[Wtr-general] Favor from a user with a non-english system

2006-09-18 Thread Charley Baker
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

Re: [Wtr-general] What happened to the enabled_popup method?

2006-09-18 Thread Charley Baker
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

Re: [Wtr-general] Do you want Watir to be more popular?

2006-09-18 Thread Charley Baker
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

Re: [Wtr-general] Delays and Pauses

2006-09-18 Thread Charley Baker
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

Re: [Wtr-general] Delays and Pauses

2006-09-18 Thread Charley Baker
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. -

Re: [Wtr-general] Disclaimer

2006-09-19 Thread Charley Baker
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

Re: [Wtr-general] image

2006-09-22 Thread Charley Baker
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

Re: [Wtr-general] Intermittent RPC error

2006-09-22 Thread Charley Baker
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

Re: [Wtr-general] Managing the Watir Project

2006-09-25 Thread Charley Baker
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

Re: [Wtr-general] file download

2006-09-25 Thread Charley Baker
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

Re: [Wtr-general] How to click Ok button in javascript pop-up?

2006-09-26 Thread Charley Baker
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? >

Re: [Wtr-general] How to manipulate a data in select list by index?

2006-09-26 Thread Charley Baker
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

Re: [Wtr-general]

2006-09-26 Thread Charley Baker
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

Re: [Wtr-general] file_field.set not working

2006-09-26 Thread Charley Baker
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

Re: [Wtr-general] Fwd: Managing the Watir Project -- Wikipedia entry

2006-09-28 Thread Charley Baker
> 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)

Re: [Wtr-general] detecting button as disabled or enabled

2006-09-28 Thread Charley Baker
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? > _

Re: [Wtr-general] watirmaker unsupported DEBUG statements

2006-09-29 Thread Charley Baker
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   2   3   4   >