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 testingusing xls sheet watir. For example:1. I have an xls sheet(c:/info.xls)

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,

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

2006-05-04 Thread Charley Baker
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.sourceforge.net/ I use Eclipse for other languages

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 =

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

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

Re: [Wtr-general] Development updates

2006-05-19 Thread Charley Baker
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 the same to update to the latest. I'm not sure

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

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-2d5e1db91038displaylang=en-CharleyOn 5/26/06, Adrian Rutter [EMAIL PROTECTED] wrote: Hi,I am trying to locate some

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

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,

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 a

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,

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

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

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

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] wrote:Hi,Is there a

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

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

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 can

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

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

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

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... I

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

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

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'm

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

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

2006-08-03 Thread Charley Baker
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 need to use the jcode library for unicode support, that being said, it'll be interesting

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-2d5e1db91038displaylang=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 pop ups in my

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,

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

[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

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

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 tr tag and 6 represents the sixth column td

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

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
if http_equiv != metas[name] = content if name != end--END--Hope that helps.jdOn Sat, 19 Aug 2006 10:14:27 -0700, Charley Baker [EMAIL PROTECTED] wrote: 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

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

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

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.

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,

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

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. -CharleyOn

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

2006-09-09 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 filecontainingthe output for an entire test

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

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 Test Unit Report: http

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

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. I'm

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

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

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

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 =

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

2006-09-15 Thread Charley Baker
: 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 own question - only null and :title methods are supported. modal = ie.modal_dialog # or use the :title

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

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,

[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.

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

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]

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:

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

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

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 [EMAIL

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

Re: [Wtr-general] input type=image

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: 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

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 have

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) # get a

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

Re: [Wtr-general] Inputing text into a textarea that is containedwithin a div

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

Re: [Wtr-general] Joining two variables

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

Re: [Wtr-general] Storing a redirected url as a variable

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

Re: [Wtr-general] How to access link in table cell?

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

Re: [Wtr-general] WinClicker - too many callbacks are defined

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

Re: [Wtr-general] Find parent table index from a specific element within

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

Re: [Wtr-general] detecting versions of browser and os

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

Re: [Wtr-general] detecting versions of browser and os

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

Re: [Wtr-general] about command window

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

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

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

Re: [Wtr-general] WATIR Bug on Vista

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

Re: [Wtr-general] abnormal program termination error message while playing back a script

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

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

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

Re: [Wtr-general] Excel Or Text File?

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

Re: [Wtr-general] Click on a pixel location

2006-12-06 Thread Charley Baker
There are many ways to access controls, does the textbox have any attributes? id, name, etc? If it does then you can use the standard set method: ie.text_field(:name, username).set(admin) Are you getting errors accessing it? If so what errors? If the text field doesn't have any identifiable

Re: [Wtr-general] Click on a pixel location

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

Re: [Wtr-general] Click on a pixel location

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

  1   2   3   >