[wtr-general] Re: Using Watir to test AS400 mainframe AND testing strategy

2009-02-10 Thread SANTOSH SOLAPURKAR
What kind of terminal eimulator you are using, most of these Emulators support api/ehhlapi to interface with VB or other language for scription. Once you know that you can implement same functions in Ruby which will make your too free of cost... I had done same for our mainframe like emulator

[wtr-general] How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread wesley chen
Suppose I have a SQL 2005 DB, db name: active, user id: wesley, password: 11, table_name: wesley_tb How can I get all the data in the tb wesley_tb? I have searched some resource, majorly two methods referred. First require 'win32ole' Second require 'dbi' Is anybody familiar with the

[wtr-general] Re: Does Watir 1.6.2 install on Mac OS X?

2009-02-10 Thread John Kolokotronis
I have to get back to my Mac later today to check, but I definitely can't get Safari set as the default. This actually does give me the same feedback in irb on my system: Watir::Browser.default = 'safari' = safari But then Watir::Browser.new attempts to launch FF anyway. I wonder if the gem

[wtr-general] Re: Using Watir to test ExtJS?

2009-02-10 Thread sai
I am able to work on this. But it has some pretty deep div and table nesting.. Lots of Ajax stuff also. Interesting app to test on but changing ids mean lack of testability which is bad :( Regards, Sai http://code.google.com/p/chrome-watir On Feb 9, 7:04 pm, G goo...@email.giffould.com wrote:

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread aidy lewis
This uses windows authentication, but get the idea require 'dbi' module Database class SQLServerConnection attr_reader :row def initialize(server_name, db) @db = db @dbh=DBI.connect(DBI:ADO:Provider=SQLOLEDB;Data Source=#{server_name};Intitial catalog...@db};Integrated

[wtr-general] Re: Troubles with Send_Keys()

2009-02-10 Thread Bill Mosteller
Registering by hand worked like a charm, thanks very much. I did it from the same ID (an administrator) that installed Watir from, so perhaps that registration either didn't occur or didn't take for some reason. On Feb 9, 10:01 pm, Al Snow jasn...@gmail.com wrote: Bill,      I believe that

[wtr-general] Re: Controlling JavaScript Pop Ups without .click_no_wait

2009-02-10 Thread Vinay
Hi Bill, I am facing the same issue of click_no_wait(). please send your code.It will be more useful for me. Thanks in advance, Vinay H A On Jan 27, 1:25 am, Bill Mosteller w...@greatdecals.com wrote: The application situation is that the user is about to discard unsaved work.  A

[wtr-general] Re: count the number of div elements (without divs.find_all)

2009-02-10 Thread Michael Hwee
Very cool, Jarmo. If you don't mind, can you explain how to find such powerful neat methods? That helps all of us. Thanks. - Original Message From: Jason freezingki...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Monday, February 9, 2009 4:47:19 PM Subject:

[wtr-general] Possible demo?

2009-02-10 Thread Dallasjeff
Our software company is looking for an automated test suite. We had some questions to see if Watir has what we need. I'm not a developer but have been given a few things to ask: We need to have dynamic data driven test script. Simulate user action (javascript) Automated and manual kickoff

[wtr-general] Re: Possible demo?

2009-02-10 Thread Darin Duphorn
I had to do the same thing. I created my own Demo, by downloading ruby watir. And we are continuing to use it today, and it can work with you short list of requirements. -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of

[wtr-general] Duplicate Table Ids

2009-02-10 Thread Saterus
I'm working on a screen scraping program to pull data off a public records website. We don't control the servers, so we can't fix any of the rotten html we have to work with. Watir's been working great up until I hit a page with many nested tables, some of which have duplicate id fields (table

[wtr-general] Re: Duplicate Table Ids

2009-02-10 Thread Darin Duphorn
Have you tried using :index? -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Saterus Sent: Tuesday, February 10, 2009 2:59 PM To: Watir General Subject: [wtr-general] Duplicate Table Ids I'm working on a screen scraping

[wtr-general] Re: count the number of div elements (without divs.find_all)

2009-02-10 Thread Michael Hwee
Thanks, Alex. I need to catch up my readings. - Original Message From: Alex Collins a.j.collins...@gmail.com To: watir-general@googlegroups.com watir-general@googlegroups.com Sent: Tuesday, February 10, 2009 10:06:52 AM Subject: [wtr-general] Re: count the number of div elements

[wtr-general] Watir and Firefox

2009-02-10 Thread Jason Shelton
All, I haven't used Watir for about 7-8 months now, but I am now setting up a new framework using Watir. I am writing to ask about the latest updates to Watir, and its compatibility with Firefox. Which build of Watir should I install to get the version that supports both IE and Firefox?

[wtr-general] Re: How to get the data in a SQL 2005 database table with ruby?

2009-02-10 Thread wesley chen
Hi, Aidy, I tried your way, but failed, you have not provide some method for user id, user password input. Would you please provide the information more detailed? I find another solution which can well deal with this problem. But I still expect your reply. require 'win32ole' class SqlServer

[wtr-general] Watir Unitttests: Need help with NoMe thodError: undefined method issue‏

2009-02-10 Thread Al Snow
Tried this on the wtr-development-boun...@rubyforge.org and got no responses so I will try here. Fellow Watir testers/developers, I am moving forward with setting up and testing my Ruby and Watir environments. I have all but 5 watir/unittests passing when I run the watir tests individually

[wtr-general] Re: Controlling JavaScript Pop Ups without .click_no_wait

2009-02-10 Thread Bill Xu
Hi Vinay: My cold is like this ###save_file function### def save_file(filepath) ai = WIN32OLE.new(AutoItX3.Control) ai.WinWait(File Download, , 5) ai.ControlFocus(File Download, , Save) sleep 1 ai.ControlClick(File Download, , Save, left) ai.WinWait(Save As, , 5)