Re: [Wtr-general] [OT] - Gem upgrade?

2006-05-01 Thread Dave Burt
Raghu Venkataramana wrote: How does one upgrade gems? when I do a gem install on the latest gem, I find two versions of the same application installed: for example, wet-web (0.5, 0.9) I am only left with an option to first uninstall the previous version of GEM and then installing the

Re: [Wtr-general] [OT] - Gem upgrade?

2006-05-01 Thread Dave Burt
Raghu Venkataramana wrote: Dave Burt wrote: Use this command to remove all old versions of gems you have installed: gem cleanup However, as Bret said, there's no harm in leaving them there. Nope. With two versions(and as time goes by it could be more than two) of a gem library

Re: [Wtr-general] The Watir Installer

2006-05-01 Thread Dave Burt
+1 Bret Pettichord wrote: This is a proposal for packaging Watir 1.5. Watir will be distributed as two files. 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or remotely installed over the internet (as always). 2. watir-bonus.zip - A zip file containing the user

Re: [Wtr-general] changing watir versions

2006-04-11 Thread Dave Burt
Jeff Fry wrote: how does my machine find watir? How does it choose between multiple installs? Can I tell it explicitly in a script to use a particular version? It depends on how they were installed, and if RubyGems is in control. I think site_ruby installs take priority over gems. (It's been

[Wtr-general] Watir 1.5?

2006-03-21 Thread Dave Burt
Hi Bret and anybody else hacking on the Watir library, What's the status on Watir 1.5? The changes I've heard about include effective ways of handling popups (confirm, alert, modal web dialogs, save-as) and more consistent returning of Watir wrappers rather than straight WIN32OLE handles, and

Re: [Wtr-general] Watir 1.5?

2006-03-21 Thread Dave Burt
Hi Bret, Thanks for your complete and helpful answer. I'll probably grab the dev code when I get a chance. Bret said: Since moving the code to OpenQA, there are a lot of loose ends to tie up to explain what is going on. If you see one, it would help a lot if you could tie it off for us.

Re: [Wtr-general] Multi IE explorer

2006-02-23 Thread Dave Burt
Xi Chen wrote: I have looked at FAQ about invoking separate IE instances using Watir. However I found it doesn't work. For example I tried to open up 10 different browser with a textfield in each of them. I tried to write some text in the text_field. All the text are writen into the textfield

Re: [Wtr-general] Line no

2005-12-24 Thread Dave Burt
Does anybody know weather watir have specific function to go to a specific line no in the program. Yes, it doesn't. You can get an addon to add goto capability from http://raa.ruby-lang.org/project/ruby-goto/ But you don't want to. There's a better way to do what you want to do, but I don't

Re: [Wtr-general] Big trouble working with Nested While If loops

2005-11-13 Thread Dave Burt
Hi, Vishal wrote: Hi, I am getting a wierd error, whenever I have a nested loop, I have checked the length of array data its 1. The error read as below: irb(main):208:0 while rec_ctr data.length irb(main):209:1 Display all 375 possibilities? (y or n) ==

Re: [Wtr-general] ... iterating over rows cells in tables ...

2005-10-29 Thread Dave Burt
Jeff Wood wrote: Yeah, I knew I could do it that way , it's just not clean enough for me... Fair enough, and definitely it's worth doing better. I wonder if the HEAD version of watir has all or part of this feature, or whether your solution to this could get merged. Cheers, Dave

Re: [Wtr-general] ... iterating over rows cells in tables ...

2005-10-27 Thread Dave Burt
Jeff Wood wrote: I'm not seeing an easy way to iterate over the rows | cells in tables ... I'm going to look into this and see what I can provide. Anybody else have any information or suggestions? I'm not against this being doable in Ruby, but there is the COM interface to the DOM:

Re: [Wtr-general] screw it, I'm using Perl Fwd: painfully stupid AutoIT question

2005-10-24 Thread Dave Burt
Bret wrote: The threading in the Win32 Ruby implementation is distinctly inferior to Perl's. There, i said it. It's not peculiar to Win32 - Ruby uses green threads (implemented using select()) which all run in the same process. People claim some benefit from this (they work the same on all

Re: [Wtr-general] handling file dialog

2005-10-06 Thread Dave Burt
B There is some support for some modal dialogs in 1.4. B B It is often awkward, and will be improved in 1.5. There are also some types B of dialogs (not those mentioned by the OP) that can't be accessed using 1.4. J Not even using AutoIt ??? J J I was under the impression that we could do just

Re: [Wtr-general] Accessing the text contents in Alert windows

2005-10-06 Thread Dave Burt
Hi, I want to acces the contents of an Alert window or conirm that the Alert window has appeared. Is there a way to access the text contents in an Alert Window?. How do I know if the Alert window has appeared? See the following post:

Re: [Wtr-general] About the installation of DBI

2005-09-27 Thread Dave Burt
Hi Walter, Chris, what is AoAs ? Not a special data type, just arrays of arrays. At my current site, I use WATiR, but cannot do any DB work in Ruby, because the DB (DB2 on zOS) doesn't allow ODBC connections. You need to access certain sys/admin tables to get an ODBC connection, and we

Re: [Wtr-general] About the installation of DBI

2005-09-27 Thread Dave Burt
Chris McMahon wrote: BTW, I guess it's not a big secret, but: I *like* Perl. I'm working in a culture that's excited about Ruby. And right now I have no need for Watir. So I could actually do my current work in either Ruby or Perl, and it's just more funner right now in Ruby. It's also

[Wtr-general] Perl, Win32::GuiTest (was: About the installation of DBI)

2005-09-27 Thread Dave Burt
... I'm going to have to dig up your Win32::GuiTest posts and have a play, I think, Chris. Here ya go! Just BTW, the following code is in an article in next month's Better Software magazine: use Win32::GuiTest qw(FindWindowLike GetWindowText SetForegroundWindow SendKeys); system (1,

Re: [Wtr-general] Wtr-general Digest, Vol 22, Issue 16

2005-09-16 Thread Dave Burt
Nishita Acharya asked: This question may have been dealt with before..but can someone tell me how i can install auotIt.Am not able to find the exe... As Bret said, the DLL is really most of what you need. although the Info tool is helpful, too. Look it up at

Re: [Wtr-general] How to click the Windows 'Save' button whendownloading a file

2005-09-14 Thread Dave Burt
Michael Müller gebetenes... In a script in clicking the download link. Then a Windows window appears with the button Open, Save and Cancel. I´d like to click the save button. How can I do that? The Next window opening is the window to specify the location to save the file. How can I set the

Re: [Wtr-general] watir features

2005-09-12 Thread Dave Burt
At 07:21 AM 9/12/2005, Atilla Ozgur wrote: watir supports pop-up dialogs, though this support is limited to very simple cases and does not support modal dialogs. Bret responded: We will have support for all types of modal dialogs in Watir 1.5. And I posted code earlier that handles modal

Re: [Wtr-general] Error in the DBI

2005-09-06 Thread Dave Burt
dbh = DBI.connect(dbi:Mysql:test:localhost, testuser, testpass) Ah yes, MySQL. You have some options: 1) Use ODBC. connect(dbi:odbc:your_mysql_db_dsn) 2) Get the pure-Ruby MySQL wrapper (I don't think you can use DBI with this, so your code won't be portable to other DBMSes):

Re: [Wtr-general] Re:Ruby - database using ActiveRecord, Java integration

2005-09-05 Thread Dave Burt
I am newbee.I found the DBI is for Linux like system not for win32 . Does the DBI for win32 is exist? I am pretty sure it comes with the One-Click Installer, except that the ADO driver has been left out. Cheers, Dave ___ Wtr-general mailing

Re: [Wtr-general] Ruby - database using ActiveRecord, Java integration

2005-09-03 Thread Dave Burt
...This is how I would recommend accessing a database from Ruby for testing purposes. You can read about DBI here: DBI's more complicated than using an ORM such as ActiveRecord or Lafcadio http://lafcadio.rubyforge.org/tutorial.html ___ Wtr-general

[Wtr-general] new installers, autoit

2005-09-02 Thread Dave Burt
Bret: Guess what? The one-click installer can be used as a command line installer. watir-1.4.1.exe /S ... I do like the idea of a separate script for uninstalling old versions of Watir. You can't register the AutoIt DLL with the RubyGems, can you? That's another plus for the one-click

Re: [Wtr-general] How to open right-click context menu?

2005-09-01 Thread Dave Burt
Mike wrote: Alas, it won't fix my current problem. I can already view source for this particular window, but it's showing me source for just one of the frames, and not the one I care about. Even clicking on the frame I want and then looking at view source doesn't change anything. This page

Re: [Wtr-general] How do you invoke autoIt from a Watir script ?

2005-09-01 Thread Dave Burt
Mike asked: How do you invoke autoIt from a Watir script ? (I am basically interested in getting to left right mouseclicks, I assume you can't do mouse clicks with send_keys) All the AutoIt documentation is for VB Script. # I got this to run at least, not sure if its right : class Autoit

[Wtr-general] Javascript dialogs - reading and closing

2005-08-31 Thread Dave Burt
Hi List, I've been using the following script to read and close javascript alert() and confirm() dialogs in Watir. It could fairly easily be extended to deal with file choosers, as I saw someone asking for earlier. To be clear, it will wait a dialog to be shown and close it using the given

Re: [Wtr-general] Re: Javascript dialogs - reading and closing

2005-08-31 Thread Dave Burt
Joe Yakich wrote: Thanks so much for posting this code, it looks like it will be exactly what we need to start handling our Javascript dialogs. You're welcome. I hope it works as well for you as it does for me. Did I mention it requires AutoIt? I have a question (and it's probably an

Re: [Wtr-general] Is Watir suitable for Web app (.Net Framework)?

2005-08-30 Thread Dave Burt
Hue Mach Dieu wrote: Dear All, I just finished the web automation test use Watir. Now I have new web project (base on .Net framework) may be use C# or ASP.net. I would like to know is Watir suitable for it. Watir drives IE. It's suitable for testing any application that uses IE as a client.