Re: [Wtr-general] Testing a url that results in IE loading the Acrobat Reader plugin

2007-03-20 Thread Charley Baker
Interesting, I'm using Watir 1.5.1.1161 and getting a different error. A Win32OLERuntimeError, bombing out with unknown property or method 'readyState' which makes sense since we're calling readyState on the document. I can get the url of the ie object, but obviously since it's not an html page

Re: [Wtr-general] Save Image Hangs?

2007-03-20 Thread Charley Baker
You'd need to post how you're getting to the window for anyone to be able to help, watir version would be good as well. -Charley On 3/20/07, sathees [EMAIL PROTECTED] wrote: Hi, I am running a watir script that saves images. Runs fine except it hangs at save window some time. Waiting for me

Re: [Wtr-general] Testing a url that results in IE loading the Acrobat Reader plugin

2007-03-20 Thread Charley Baker
There doesn't appear to be anything inherently useful without looking at the actual api. Btw, I'd highly recommend this library when looking at win32ole objects, it's pretty slick: win32ole pretty print http://rubyforge.org/projects/win32ole-pp If you do use the win32ole pretty print library you

Re: [Wtr-general] using span

2007-03-16 Thread Charley Baker
If it has a javascript onmouseover event associated with it, you could fire that event first and then get the controls. ie.span(:class, 'popup_link').fire_event('onmouseover') now interact with the controls on the rendered form. Hopefully that helps. -Charley On 3/16/07, Naga Harish

Re: [Wtr-general] ruby 1.8.6

2007-03-14 Thread Charley Baker
Watir's modal_dialog works with Ruby 1.8.2 only currently. Otherwise, everything else should work fine. -Charley On 3/14/07, Max Russell [EMAIL PROTECTED] wrote: Any early birds tried this out? If so, have any changes had an impact on Watir? I'm a bit of a lurker when it comes to

Re: [Wtr-general] Question regarding buttonmenu

2007-03-13 Thread Charley Baker
Some html sample code would be helpful. -c On 3/13/07, Mathew Jacob [EMAIL PROTECTED] wrote: Hi, I have one scenario that buttonmenu and two items in that buttonmenu. What is the command to select item in buttonmenu. Please guide me. Regards, Mathew * * *Ya**ho**o India,

Re: [Wtr-general] contract work in San Francisco

2007-03-13 Thread Charley Baker
I do believe I know the company and would highly recommend anyone interested checking it out. -c On 3/12/07, Bob [EMAIL PROTECTED] wrote: National retailer has an immediate need for a test engineer with experience in Ruby/WATiR. Work on a very high profile J2EE based Ecommerce effort. Lead

Re: [Wtr-general] Is there a global variable to control the scripts execution speed

2007-03-12 Thread Charley Baker
There's not an execution control variable, but instead of sleep which is unreliable, the best bet when using Watir 1.5 is to use the wait_until method. For example, do something wait_until{ ie.button(:value, 'Click Me').exists?) # poll for some control to show up with defaults of

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

2007-03-08 Thread Charley Baker
Hey Jeff, I'm not able to get to the site you have listed in your test, seems the url might be local to your internal network? When you include unittests/setup there's a line at the beginning there: END {$ie.close if $ie; Watir::IE.quit} which closes ie when your tests are done running.

Re: [Wtr-general] Identifying the id of the element with focus after a tab

2007-03-08 Thread Charley Baker
Hi Mike, When you're using AutoIt, you're working with windows controls, not html elements per se. There's no way that I'm aware of that you can easily get the html element id using AutoIt. It recognizes windows, controls and identifies them by using Window handles, text and the like. There's

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

2007-03-08 Thread Charley Baker
/show_login_pagehttp://carolinerr.realgirlsmedia.local/public/login/show_login_page Jeff On 3/8/07, Charley Baker [EMAIL PROTECTED] wrote: Hey Jeff, I'm not able to get to the site you have listed in your test, seems the url might be local to your internal network? When you include unittests/setup there's

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

2007-03-08 Thread Charley Baker
did using 'label_user_email' give the error it did, rather than just telling me that the object was not found? Jeff On 3/8/07, Charley Baker [EMAIL PROTECTED] wrote: Had to change the id's you were using to access the html elements, this should work: require 'watir' include Watir require

Re: [Wtr-general] Assert in helper class in require'd file

2007-03-08 Thread Charley Baker
It's not really a Watir thing more of a test unit issue. You just need to require 'test/unit/assertions' and may want to include the Assertions module. Something like the following: So it's === require 'includeFirst' require 'test/unit'

Re: [Wtr-general] Excel Interface Class

2007-03-07 Thread Charley Baker
I'm not sure why you can't access those links, I just went to both of them and the pages opened fine. Can you access them through the main site? http://www.openqa.org/watir and follow the links to FAQ and/or wiki. -c On 3/6/07, swarna latha [EMAIL PROTECTED] wrote: Hi, I am unable to access

Re: [Wtr-general] How to get the run result for each test case

2007-03-07 Thread Charley Baker
This is really more about test::unit than Watir. Watir doesn't report results or contain your tests, test unit does. You could modify the test reporter in test unit if you want more immediate feedback. Running through Eclipse with the ruby plugin also gives more immediate feedback I believe, it's

Re: [Wtr-general] Seemingly bogus error in simple script

2007-03-07 Thread Charley Baker
I can only assume there are some timing issues. I'd recommend using a more recent version of Watir which you can pull from the home page on openqa: http://www.openqa.org/watir or build your own from the repository which is on the FAQ page under Installing a Gem from the latest development source.

Re: [Wtr-general] Seemingly bogus error in simple script

2007-03-07 Thread Charley Baker
You didn't say there was an error or anything went wrong. I'd recommend ie developer toolbar over show_all_objects. The link is on the FAQ site. Otherwise, are you having problems? -Charley On 3/7/07, matt [EMAIL PROTECTED] wrote: I am a new user to ruby/watir as well...maybe we can get

[Wtr-general] Accessing a dhtml menu

2007-03-06 Thread Charley Baker
Hi all, I'm having a bit of trouble accessing menu drop downs which are created by using ie's createPopup method. I've got an application that has some divs, which then get shoved into the content of a popup/menu item. div myonclick=parent.callFunction('foo';'something'), . On clicking

Re: [Wtr-general] What is the funtion in Ruby equivalent as strrchr in C

2007-03-05 Thread Charley Baker
There are quite a few ways to do this, here's one using expand_path: f = File.dirname(__FILE__) # get your test directory puts File.expand_path(#{f}/..) # get the directory above your test directory -Charley On 3/5/07, Jason He [EMAIL PROTECTED] wrote: Dear all, I

Re: [Wtr-general] OT: The original problem. Re: A small doubt in Ruby

2007-03-05 Thread Charley Baker
Strange, I tried the example from Jonathan Kohl, and it worked fine. The idea in Ruby is that variables hold references to objects not the objects themselves similar to Java. If you've worked in c/c++ this will make more sense, Ruby, Java and some other languages hide the ugliness of this under

Re: [Wtr-general] A small doubt in exception handling

2007-03-03 Thread Charley Baker
Sure, read the documentation for Ruby Exception class on rubydoc: http://www.ruby-doc.org/core/ The first listed method is backtrace which has filename:lineno def method_foo begin f = File.open('/some/non-existent/file') rescue puts Message: + $!.to_s $!.backtrace.each {|l| puts

Re: [Wtr-general] How to Pass values from Excel into variables in Watir ?

2007-03-02 Thread Charley Baker
Hey Angrez, I'd be more than happy if you were to add this to the FAQ. -Charley On 3/2/07, Angrez Singh [EMAIL PROTECTED] wrote: Hi, This question has been asked couple of times in this list. You can search the archives for the answers/code snippets etc. Bret: I think we should add this

Re: [Wtr-general] Converting into LOG

2007-03-02 Thread Charley Baker
Hi Harish, You can use test-report or ci-reporter on rubyforge to output your results. My tests are hooked up through Cruise Control on a continuous integration server which picks up the reports, sends out email and can also display logs in the Cruise Control build artifacts on the ci box cc

Re: [Wtr-general] Button identification

2007-02-28 Thread Charley Baker
Try using the ie developer toolbar. I've finally added this to the Watir FAQ: http://wiki.openqa.org/display/WTR/FAQ#how-to-identify-html-elements -Charley - Posted via Jive Forums

Re: [Wtr-general] Nested Frames

2007-02-22 Thread Charley Baker
The access denied errors will no longer show up with the latest code in trunk. It's now swallowing all the access denied errors as a temporary work around. There's a possible solution used by Colin Neller in Watin(.net version of watir):

Re: [Wtr-general] Is this watir's limitation?

2007-02-21 Thread Charley Baker
You might try looking at the DOM that's output with IE developer toolbar: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=en This is what Watir and the end user are seeing. The asp code is still sending html output to the browser.

Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-17 Thread Charley Baker
I guess I'm not too surprised, its been a long time since there's been any active development on the project, it is definitely a big void to fill however. Nick, glad to hear about ci reporter, I will definitely be taking a look at it. I'm currently using the xml output of test runs through test

[Wtr-general] OT: Test unit reporter project dead?

2007-02-16 Thread Charley Baker
I've been using test unit reporter for some time. I just tried to look up the page on Rubyforge for a friend and now I'm getting an Invalid Project page at http://rubyforge.org/project/test-report/ and the project site listed in the readme for test-report. Sending a message to Alexey about it,

Re: [Wtr-general] Problem with Logon popup window

2007-02-13 Thread Charley Baker
It's a javascript dialog, one answer is in the FAQ link in the previous post. Is this not working for you? -Charley On 2/13/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: Hi, I too have the same problem, ,, This is my html.. a href=/login/logout onclick=return confirm('Are you sure you

Re: [Wtr-general] Problem with Logon popup window

2007-02-09 Thread Charley Baker
If this is a javascript popup you can take a look at the FAQ http://wiki.openqa.org/display/WTR/FAQ for handling javascript popups. Otherwise if this is an IE specific modal dialog, then using watir 1.5.1 you can access the modal_dialog through your ie object. Let us know if either of these two

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-08 Thread Charley Baker
Zeljko, The arguments are a hash. Ruby implicitly creates a hash when they're sent in. I'm not sure how it's not working for you. Try a simple example: require 'test/unit' class HashArgs Test::Unit::TestCase def test_args implicit_hash(:foo = 'bar', :other_foo = 'other_bar') end def

Re: [Wtr-general] Identifying Last object using Index: -1 ???

2007-02-08 Thread Charley Baker
Add a require for test unit at the top of the file: require 'test/unit' -c On 2/8/07, Lauren [EMAIL PROTECTED] wrote: Wow Carl, What an awesome reply. I got code!! :) No doubt I'm still doing something wrong...I'm getting the following error when I run the code on my box though: ruby

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-08 Thread Charley Baker
Thought i remembered it from the Pickaxe book, guess I did. :) If you check out the bottom of the page on this link: http://www.rubycentral.com/book/tut_methods.html you'll find a reference to it - Collecting hash arguments. Passing curly braces to a method can get confused with blocks, so this

Re: [Wtr-general] How to take input from text file?

2007-02-08 Thread Charley Baker
well, I'm not sure i fully understand what you're looking for but you have some pseudocode: open list go through names move to next record if person has no name otherwise see if record is found if record is found then wait a long time#this seems odd, but not knowing your business domain,

Re: [Wtr-general] How to take input from text file?

2007-02-08 Thread Charley Baker
Agreed, nice nit. :) You can pick at the file line by line or if using YAML as Richard mentioned, as a document by document separated in yml by dashes. -c On 2/8/07, Chris McMahon [EMAIL PROTECTED] wrote: I'll pick one nit here: lineArray = IO.readlines( myFile.path ) lineArray.each{

Re: [Wtr-general] Question About Test Suite

2007-02-05 Thread Charley Baker
Take a look at the documentation for test/unit: http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html The method to run the test suite should be outside your test suite class. TestSuite also doesn't have setup and teardown methods, those are test case methods. No reason to

Re: [Wtr-general] http_error_checker on IE7

2007-01-31 Thread Charley Baker
Paul, I committed the change in svn after testing it on IE6 and IE7. -Charley On 1/30/07, Bret Pettichord [EMAIL PROTECTED] wrote: Paul, Please go ahead and commit this change. Bret - Posted via Jive Forums

Re: [Wtr-general] saving screenshots with snagit

2007-01-31 Thread Charley Baker
There are some sample programs using the com binding on Techsmith's website and minimal COM api docs. You might also take a look at Aslak Hellesoy's screenshot library for Ruby: http://blog.aslakhellesoy.com/articles/2006/12/02/getting-screenshots-from-watir -Charley On 1/30/07, david goodine

Re: [Wtr-general] http_error_checker on IE7

2007-01-31 Thread Charley Baker
Good point, I'm looking at a good way to tell if the navigation fails in IE7. So far the best way I can find is to check the url for res:///dnserror.htm There may be other pages that get used for other errors though - 500 responses, etc. I'm using two machines to test. There is however, some

Re: [Wtr-general] http_error_checker on IE7

2007-01-31 Thread Charley Baker
Noticed that too, but Watir does store it in the @url_list in the wait method before it calls run_error_checks. Which would require checking the url on the unless condition to add res errors regardless of already in the list. -c On 1/31/07, Paul Rogers [EMAIL PROTECTED] wrote: i looked at the

Re: [Wtr-general] How to handle the popup security alert

2007-01-26 Thread Charley Baker
Windows 2000 to do the test? (As we known Windows 2000 doesn't support IE 7) Regards, Jason -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Charley Baker *Sent:* 2007年1月26日 13:17 *To:* wtr-general@rubyforge.org *Subject:* Re: [Wtr-general] How

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-25 Thread Charley Baker
I'm not sure I understand what you're saying, but the function of click_link_with_text in Watir Simple is to click a link with the given text. If it's not working the way you expect, you could provide more details? -Charley On 1/25/07, Andrew [EMAIL PROTECTED] wrote: Hi Can i use

Re: [Wtr-general] How to handle the popup security alert

2007-01-25 Thread Charley Baker
You can use either/or. I'm working with AutoIt internally on our own version based off of WindowHelper which uses AutoIt. The only trick is adding support for IE 7, which instead of using popups, opens a new tab. -Charley On 1/24/07, Jason He [EMAIL PROTECTED] wrote: Hi, I'm using https to

Re: [Wtr-general] Two queries in Watir

2007-01-19 Thread Charley Baker
Take a look at the watir examples directory. You'll find a logging directory with test_logger1.rb and example_logger1.rb. -Charley On 1/19/07, Maloy kanti debnath [EMAIL PROTECTED] wrote: Hello Ogre, Thank you for your correct answer. If you also tell us whether there is a default 'log' in

Re: [Wtr-general] same text fordifferent urls..

2007-01-19 Thread Charley Baker
Try something like this: ie.link(:url, /some regex to match/).click -Charley On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: Hi all, How to click on the links based up on the href rather than the text? Ex:: I am having the same text with different ids. i.e., we are having 30

Re: [Wtr-general] OT: anyone tried JRuby?

2007-01-19 Thread Charley Baker
We used JRuby internally for access to a 3rd party search library. It works great for creating and using java objects which may live on your middle tier. I haven't spiked anything externally, but let me know if you have any specific questions. -c On 1/19/07, Chris McMahon [EMAIL PROTECTED]

Re: [Wtr-general] how to connect with Microsoft Access database

2007-01-10 Thread Charley Baker
Take a look at dbi, you can use odbc to connect to Access: http://rubyforge.org/projects/ruby-dbi/ Tutorial: http://www.kitebird.com/articles/ruby-dbi.html -Charley On 1/10/07, Maloy kanti debnath [EMAIL PROTECTED] wrote: hi, I am not able to connect with Microsoft Access database ..

Re: [Wtr-general] Error with file_field in a modal window (using 1.8.2 / 1.5.1.1127 )

2007-01-10 Thread Charley Baker
From command line in the Watir directory where the AutoIt dll lives, run regsvr32 AutoItX3.dll -Charley On 1/10/07, Paul Carvalho [EMAIL PROTECTED] wrote: And you do this how...? Perhaps you should include a link, reference or example of how to do this in your response. On 10/01/07,

Re: [Wtr-general] the problem about test cases organization.

2007-01-04 Thread Charley Baker
In the readme file there is an installation section: == Installation Download and unpack the Test::Unit::Reporter. Change to the root user if you are on *nix. Issue the following commands: ruby setup.rb config ruby setup.rb install Run those commands at the command line. -Charley On 1/4/07,

Re: [Wtr-general] How to verify if SPAN is visible

2007-01-03 Thread Charley Baker
the following to try it out. require 'watir' require 'watir_ext' include Watir ie = IE.new ie.goto(www.someplace.com) button = ie.button(:id, 'somebutton') if button.visible? button.click else ie.close end -Charley On 12/21/06, Charley Baker [EMAIL PROTECTED] wrote: There's a user contribution

Re: [Wtr-general] javascript Menu

2007-01-02 Thread Charley Baker
I've done it in two ways. Call ie.goto on the link that the menu item points to, kind of cheating, but it works for testing one of my apps. The other option is to fire a javascript event which generally brings up a hidden div or something of the like. ie.link(..).fire_event('onClick')

Re: [Wtr-general] Give a solution fo javascript popup

2007-01-02 Thread Charley Baker
Of *Charley Baker *Sent:* Tuesday, January 02, 2007 2:38 PM *To:* wtr-general@rubyforge.org *Subject:* Re: [Wtr-general] Give a solution fo javascript popup Mark, You mind posting that to the FAQ site? Definitely an FAQ and then you or anyone can send out the url. -Charley On 1/2/07, *Cain

Re: [Wtr-general] javascript Menu

2007-01-02 Thread Charley Baker
Hey Nathan, Would you like to add this to the FAQs or the general Watir documentation? -Charley On 1/2/07, Nathan [EMAIL PROTECTED] wrote: So I will assume that you are talking about a menu that when your cursor is over it, the menu drops down or appears, and then you can click on a link, is

Re: [Wtr-general] the problem about test cases organization.

2006-12-28 Thread Charley Baker
Include them in a test suite and use test unit report: http://test-report.rubyforge.org/. You can report out like junit tests in html or xml. I'm glad you are expecting the best solution. -Charley On 12/28/06, kim [EMAIL PROTECTED] wrote: Suppose In a project I wrote many rb files. I want to

Re: [Wtr-general] Problem with Autoit?

2006-12-26 Thread Charley Baker
You might need to register the dll. Open a command prompt where AutoItX3.dllis installed. From the gem install you'll need to go to {ruby_install}\lib\ruby\gems\1.8\gems\watir-1.5.1.1135\watir where you'll find the dll and then run regsvr32 AutoIt3X.dll -Charley On 12/22/06, Galina Maralina

Re: [Wtr-general] A strange problem of ie.maximize

2006-12-26 Thread Charley Baker
Sending some of your script and html snippets might help. I'm using maximize pretty extensively and haven't run across any problems. -Charley On 12/24/06, liucongying [EMAIL PROTECTED] wrote: I have finished my script,but I met a problem : if I put the $ie.maximize in the login page, I login

Re: [Wtr-general] The method of show_links is wrong !!!

2006-12-26 Thread Charley Baker
Not sure why you're having problems with show_links. Are you trying to show_links in a modal dialog? More specifics would be helpful. My only guess without more information could be the version of Ruby you're using. You might try rolling back from Ruby 1.8.5 to 1.8.2. -Charley On 12/25/06,

Re: [Wtr-general] Problem with Autoit?

2006-12-26 Thread Charley Baker
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, December 26, 2006 10:40 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Problem with Autoit? Charley Baker wrote: You might need to register the dll. Open a command prompt where AutoItX3.dll

Re: [Wtr-general] how to minimize command prompt of ruby.exe

2006-12-22 Thread Charley Baker
Change your system call to call rubyw which won't open a command window: c = start rubyw #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} Here's more information in the Pickaxe book: http://www.rubycentral.com/book/win32.html -Charley On 12/21/06, VIKASH KUMAR [EMAIL PROTECTED]

Re: [Wtr-general] Executing javascript in 1.5

2006-12-21 Thread Charley Baker
Agreed: http://jira.openqa.org/browse/WTR-121. On 12/20/06, Charley Baker [EMAIL PROTECTED] wrote: Ah, you're adding it to the IE class, which in Watir 1.4.1 was a super of Frame. In 1.5.1, Frame doesn't inherit from IE, but does include Container and PageContainer as mixins. You'll want

Re: [Wtr-general] Give a solution fo javascript popup

2006-12-21 Thread Charley Baker
Google is your friend, searching for watir javascript dialog, this is the first link: http://www.hanselman.com/blog/ClickingAJavaScriptDialogUsingWatir.aspx -Charley On 12/20/06, liucongying [EMAIL PROTECTED] wrote: I use ruby185-21 and watir-1.5.1.1127.gem, I want a solution fo js pop the

Re: [Wtr-general] How to verify if SPAN is visible

2006-12-21 Thread Charley Baker
There's a user contribution on the Wiki: http://wiki.openqa.org/pages/viewpage.action?pageId=1119that extends element to walk the DOM tree and check for disabled or non-visible elements. -Charley On 12/21/06, Paul Rogers [EMAIL PROTECTED] wrote: didnt some one post a is_visible? ( or

Re: [Wtr-general] Executing javascript in 1.5

2006-12-20 Thread Charley Baker
You're calling straight into the document ole object, Watir shouldn't be doing anything but passing the call on to IE. What error are you getting? Are you running the scripts on the same box with different version of Watir and seeing it fail? -Charley On 12/20/06, Max Russell [EMAIL PROTECTED]

Re: [Wtr-general] Executing javascript in 1.5

2006-12-20 Thread Charley Baker
Ah, you're adding it to the IE class, which in Watir 1.4.1 was a super of Frame. In 1.5.1, Frame doesn't inherit from IE, but does include Container and PageContainer as mixins. You'll want to change your run_script method to the Container namespace: module Watir::Container def run_script

Re: [Wtr-general] Automating the running reporting of watir tests

2006-12-19 Thread Charley Baker
Yes, no, maybe. :) Simple answer. I'm using Watir tests, and running them through Cruise Control, so that they're continuous integration tests, reports generated through http://test-report.rubyforge.org/. xml reports, cruise picks them up since they're xunit style and publishes them out. Cruise

Re: [Wtr-general] Simulate CNTRL-LEFT CLICK

2006-12-19 Thread Charley Baker
Do you need to control left click or simply go to a new url? I'm going to new urls for a lot of the dropdowns in one of my apps, skipping the click. -c On 12/19/06, Dave Munns [EMAIL PROTECTED] wrote: I have seen examples that double click on an object ( fire_event(onDblClick) ), but have

Re: [Wtr-general] problem in entering values in span field

2006-12-18 Thread Charley Baker
Try this: require 'watir' test_site='C:\\aa.htm' ie=Watir::IE.start(test_site) ie.span(:id,tradeDate).text_field(:index,2).set(01/01/2000) The confusion lies in trying to set a text field among two that have the same value, one being hidden. -Charley On 12/18/06, VIKASH KUMAR [EMAIL

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-08 Thread Charley Baker
Ruby's require is case sensitive. Whether that's a good thing or not, it's something to be aware of when requiring files. Require will load a file into your ruby space once whether it's a ruby file or a dll or other binary library, load is another method that will pull the file in everytime it's

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread Charley Baker
Shouldn't happen if you type require 'watir' Note the casing. require should load files once, if, however, you change the casing then you will load the same file multiple times. -Charley On 12/7/06, John Lolis [EMAIL PROTECTED] wrote: just for fun i opened up the irb and did the following

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

Re: [Wtr-general] Windows Vista / IE 7 RPC Server is Unavailable

2006-12-06 Thread Charley Baker
Hi Lisa, I haven't worked with Vista and IE7, I'm trying to get a box set up with that now. Your report gave me a nudge to set it up. The rpc server errors you're seeing are due to closing the browser, which unfortunately doesn't give a good indication of what's going wrong. I don't think the

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

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

<    1   2   3   >