Re: [Wtr-general] How to retreive the Frame Title

2007-07-11 Thread Paul Rogers
you dont need this line: ie = Watir::IE.attach(:url, https///FaqPage.aspx'/FaqPage.aspx') or if its a new window, use a different name, it will help understanding Which is line 10? I dont think frames have titles - where would you see it? try just ie.title to get the title of the

Re: [Wtr-general] Concurrent Threads and different variables in each thread

2007-07-11 Thread Paul Rogers
Must be a  cleaner way? Yes - an array - you'll figure it out ;-) - Original Message - From: Jason [EMAIL PROTECTED] Date: Wednesday, July 11, 2007 9:37 am Subject: Re: [Wtr-general] Concurrent Threads and different variables in each thread To: wtr-general@rubyforge.org

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-11 Thread Paul Rogers
yes, modal dialogs are only supported using that particular version - Original Message - From: Matt Berney [EMAIL PROTECTED] Date: Wednesday, July 11, 2007 11:09 am Subject: Re: [Wtr-general] Selecting controls in a dialog box To: wtr-general@rubyforge.org It seems like I am having

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-10 Thread Paul Rogers
have you looked at the modal_dialog stuff in watir? Ive never used it so cant help you much, but its there. - Original Message - From: Matt Berney [EMAIL PROTECTED] Date: Tuesday, July 10, 2007 12:10 pm Subject: Re: [Wtr-general] Selecting controls in a dialog box To:

Re: [Wtr-general] How to access the window.status pane

2007-07-10 Thread Paul Rogers
ie.status - Original Message - From: marty [EMAIL PROTECTED] Date: Tuesday, July 10, 2007 2:08 pm Subject: [Wtr-general] How to access the window.status pane To: wtr-general@rubyforge.org We have some code that on a MouseOver sets the window.status field. Is there a way to access

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-09 Thread Paul Rogers
---BeginMessage--- this sounds like a modal dialog box Ive never used them, but there should be unit tests and its been mentioned on the list many times, so you should be able to search the archives for sample code Paul - Original Message - From: Matt Berney [EMAIL PROTECTED] Date:

Re: [Wtr-general] hidden control..

2007-07-09 Thread Paul Rogers
there is a .hidden? method available in the user contrib section on the wiki I think. Or the email archives. Some submitted it, so it does exist. - Original Message - From: mihai [EMAIL PROTECTED] Date: Monday, July 9, 2007 2:34 pm Subject: Re: [Wtr-general] hidden control.. To:

Re: [Wtr-general] How do I attach to a mailto window

2007-07-05 Thread Paul Rogers
watir doesnt support doing this itself. You could probably write something to do this using auto-it. But an easier way is to probably test it once manually, and then save the link details. and instead of clicking the link, just make sure it hasnt changed from when you manually tested it Paul

Re: [Wtr-general] Select the first item in a list

2007-06-22 Thread Paul Rogers
I guess the options in a select list should really be array-like: ie.select_list(:id, 'whatever').select_first ie.select_list(:id, 'whatever').select_last ie.select_list(:id, 'whatever').select[3] # select the 3 or 4th, ( 1 or 0 indexing) Paul - Original Message - From: Tiffany

[Wtr-general] From comp.lang.ruby

2007-06-19 Thread Paul Rogers
THis was posted on clr http://groups.google.ca/group/comp.lang.ruby/browse_thread/thread/2170f6b9401536fc/77f9db176b92b8d0?lnk=raot#77f9db176b92b8d0 Thanks Kevin! Kev Jackson View profile I've never been so impressed with a piece of software so quickly in my life. This

Re: [Wtr-general] From comp.lang.ruby

2007-06-19 Thread Paul Rogers
ha! I never noticed that. It was on a thread of today. I guess someone just added to this original thread. - Original Message - From: Bret Pettichord [EMAIL PROTECTED] Date: Tuesday, June 19, 2007 12:57 pm Subject: Re: [Wtr-general] From comp.lang.ruby Paul Rogers wrote: From: Kev

Re: [Wtr-general] Understanding IE's wait method

2007-06-19 Thread Paul Rogers
all of those are methods ( or properties of IE ) http://msdn2.microsoft.com/en-us/library/aa752043.aspx and http://msdn2.microsoft.com/en-us/library/ms534359.aspx - Original Message - From: Jeff Fry To: wtr-general@rubyforge.org Sent: Tuesday, June 19, 2007 7:38 PM Subject:

[Wtr-general] Fwd: Re: Fwd: Re: OT: Is cruisecontrol.rb by thoughworks is withdrawn

2007-06-18 Thread Paul Rogers
heres why cruise.rb was down---BeginMessage--- Hi, Paul, It's the server that runs demo instance. For some reason it just powers itself down every month or so, and prefers to do it on Friday night... We will be moving it to a somewhat less ad-hoc setup soon. -- Alex Paul Rogers [EMAIL

Re: [Wtr-general] Breaking code into several classes and methods

2007-06-17 Thread Paul Rogers
a very quick look suggesrs you need if $ie.link(:text, $page.link_to_text ).exists? in place of if $ie.link(:text, page.link_to_text ).exists? - Original Message - From: Jeff Fry To: wtr-general@rubyforge.org Sent: Friday, June 15, 2007 6:43 PM Subject:

Re: [Wtr-general] Our contribution to Watir

2007-06-17 Thread Paul Rogers
looking at the methods provided, it would seem that some are definite candidates for inclusion the dialog code for example ) some of the others, like the regex methods, dont seem to be particularly suited watir. But saying that, thanks for the contributions, they are always welcome, and give

Re: [Wtr-general] $ie.text.include? problem

2007-06-12 Thread Paul Rogers
I just ran your code fro mirb using watir 1.4.1 and it only printed it once - Original Message - From: mihai [EMAIL PROTECTED] Date: Tuesday, June 12, 2007 11:12 am Subject: [Wtr-general] $ie.text.include? problem i have this code: testSite = 'http://www.google.com' $ie = IE.new

Re: [Wtr-general] syntax error, unexpected tIVAR

2007-06-12 Thread Paul Rogers
use this instead @ie.div(:class, 'PopupMenuLabel title').button(:class,'Button Menu').click Hey gang, I am updating a script due to a GUI change. There was previously only one button on the page where class = 'Button Menu'. Now there are two. I'm trying to identify the button by the div it's in,

[Wtr-general] safari on windows

2007-06-12 Thread Paul Rogers
http://www.apple.com/safari/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] mouse right click?

2007-06-11 Thread Paul Rogers
the code in that page uses the javascript event object, which we've had problems with in watir. I think you will be able to make this work by: simulate right click see if the menuitem div is visible click it based on its text something like this may be what you need

Re: [Wtr-general] mouse right click?

2007-06-08 Thread Paul Rogers
search the archives for onContextMenu - i posted some code to do right clicks a few months back Paul - Original Message - From: mihai [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Friday, June 08, 2007 8:54 AM Subject: [Wtr-general] mouse right click? can i send to a control

Re: [Wtr-general] Watir::Exception::NavigationException not being thrown

2007-06-06 Thread Paul Rogers
this was removed from 1.5 because for a few people it was annoying. doing this may fix it require 'watir/contrib/page_checker' ie = Watir::IE.start( 'www.page.com') ie.add_checker(PageCheckers::NAVIGATION_CHECKER) Paul - Original Message - From: Titani [EMAIL PROTECTED] To:

Re: [Wtr-general] How would you approach verification of data in *xml* format with Watir?

2007-06-05 Thread Paul Rogers
you may want to look at xml unit - http://xmlunit.sourceforge.net/ - Original Message - From: Lana [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Tuesday, June 05, 2007 7:13 PM Subject: Re: [Wtr-general] How would you approach verification of data in *xml* format with Watir?

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-06-03 Thread Paul Rogers
why not put your login code into a login class, and have th test class instantiate that class Login def initialize(params) self.username.set(params[:username]) self.password.set(params[:password]) end def username;$ie.text_field(:name, 'username');end def password;$ie.text_field(:name,

Re: [Wtr-general] How do i check the sorting of Date?

2007-06-01 Thread Paul Rogers
there is a parse method on the Date class which allows you to create a ruby date object from a string http://www.ruby-doc.org/core/classes/Date.html#M000656 you could do this for each of the dates listed below, and then have ruby sort them, and format in the same style as they are shown in

Re: [Wtr-general] 'Require' Lots Of Files

2007-05-30 Thread Paul Rogers
I use this method: def require_files_in_dir( start_dir ) files = Dir[ start_dir] files.each do |f| require f end end - Original Message - From: Fletch [EMAIL PROTECTED] Date: Wednesday, May 30, 2007 9:16 am Subject: [Wtr-general] 'Require' Lots

Re: [Wtr-general] 'Require' Lots Of Files

2007-05-30 Thread Paul Rogers
def require_files_in_dir end require_files_in_dir( 'c:\') require_files_in_dir( 'c:\temp') - Original Message - From: Fletch [EMAIL PROTECTED] Date: Wednesday, May 30, 2007 9:39 am Subject: Re: [Wtr-general] 'Require' Lots Of Files Thanks for the reply - not to sound silly at

Re: [Wtr-general] 'Require' Lots Of Files

2007-05-30 Thread Paul Rogers
just saw your other question.. doing def some_method end def some_other_method end class Foo end class Foo2 end makes the some_method and some_other_method accessable to all - what ruby does is adds them to class Object, which is the super class of everything - you can see this by doing

Re: [Wtr-general] 'Require' Lots Of Files

2007-05-30 Thread Paul Rogers
actually it seems you have to use it like this require_files_in_dir( 'c:\*.rb') - Original Message - From: Paul Rogers [EMAIL PROTECTED] Date: Wednesday, May 30, 2007 9:43 am Subject: Re: [Wtr-general] 'Require' Lots Of Files def require_files_in_dir end

Re: [Wtr-general] Automating gmail: nor click on Compose Mail, neither fire_event works

2007-05-29 Thread Paul Rogers
there is a ruby gmailer library, which, if you are just trying to send and receive email is probably a much better bet Manish, Are you working for Google, or are you automating Gmail for some other reason. I am asking because, if you work for Google, you could ask developers how to click

Re: [Wtr-general] maxLength Validation

2007-05-29 Thread Paul Rogers
Im sure there is code in the set method to limit it to the max size - did it somehow get broken? Paul - Original Message - From: Bret Pettichord [EMAIL PROTECTED] Date: Tuesday, May 29, 2007 11:30 am Subject: Re: [Wtr-general] maxLength Validation Fletch wrote: I have been looking

Re: [Wtr-general] maxLength Validation

2007-05-29 Thread Paul Rogers
I opened jira 157 and added a patch for the unit test and html I'll try and take a look at the set method itself later on - Original Message - From: Bret Pettichord [EMAIL PROTECTED] Date: Tuesday, May 29, 2007 11:30 am Subject: Re: [Wtr-general] maxLength Validation Fletch wrote: I

Re: [Wtr-general] maxLength Validation

2007-05-29 Thread Paul Rogers
I added the patch for watir.rb to the jira ticket Paul - Original Message - From: Paul Rogers [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Tuesday, May 29, 2007 6:04 PM Subject: Re: [Wtr-general] maxLength Validation I opened jira 157 and added a patch for the unit test

Re: [Wtr-general] Basic accessibility testing with Watir and RAAKT...

2007-05-25 Thread Paul Rogers
this looks really useful - it would work really well with an error checker: AccessChecker = Proc.new{|ie| raakttest = Raakt::Test.new(ie.html) result = raakttest.all if result.length 0 puts Accessibility problems detected on #{ie.title}, #{ie.url}: puts result else

Re: [Wtr-general] Basic accessibility testing with Watir and RAAKT...

2007-05-25 Thread Paul Rogers
/07, Paul Rogers [EMAIL PROTECTED] wrote: this now means that every time a page is loaded, the accessability checks get run Nice code sample. Didn't know you could do that in Watir. May I use it as an example in the Raakt wiki? Regards, Peter

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-25 Thread Paul Rogers
for images, 1.4 let you use :src which was the url of the image. I cant test it on the latest as all my gems are broken :-( - Original Message - From: Charley Baker To: wtr-general@rubyforge.org Sent: Friday, May 25, 2007 1:17 PM Subject: Re: [Wtr-general] RDOC - Help

Re: [Wtr-general] Why it is always failed?

2007-05-23 Thread Paul Rogers
you need to 'load up' the assertions libraries the following shows you how C:\cygwinirb irb(main):001:0 require 'test/unit/assertions' = true irb(main):002:0 include Test::Unit::Assertions = Object irb(main):003:0 assert( true ) = nil irb(main):004:0 assert(false)

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Paul Rogers
the exception is caused by the value you are trying to set account[bldgBI] being nil you can test is by doing this first puts oh no - its nil if account[bldgBI].nil? - Original Message - From: Tiffany Fodor [EMAIL PROTECTED] Date: Tuesday, May 22, 2007 11:04 am Subject: [Wtr-general]

Re: [Wtr-general] Error message with a dropdown

2007-05-17 Thread Paul Rogers
which version of watir are you using? I there a page refresh when the select box is selected? Paul - Original Message - From: Ken [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Thursday, May 17, 2007 1:24 PM Subject: [Wtr-general] Error message with a dropdown I am getting the

Re: [Wtr-general] how to manipulate this?

2007-05-16 Thread Paul Rogers
ie.div(:class , 'wiki').ole_object.invoke('innerText' , hi Chris) Im not entirely sure how the invoke method works with an argument, but that looks about right from the docs Paul - Original Message - From: Chris McMahon [EMAIL PROTECTED] Date: Wednesday, May 16, 2007 11:35 am Subject:

Re: [Wtr-general] how to manipulate this?

2007-05-16 Thread Paul Rogers
ah, of course, you only need invoke if there is a collision between an ole_method name and a ruy method name, like id - Original Message - From: Bret Pettichord [EMAIL PROTECTED] Date: Wednesday, May 16, 2007 12:39 pm Subject: Re: [Wtr-general] how to manipulate this? Paul Rogers wrote

Re: [Wtr-general] Supporting IE 7

2007-05-16 Thread Paul Rogers
I think its important to support both at the moment, as Im sure many people still havent upgraded. Id seen these problems, but Im using 1.4 and I cant remember if I did something to make it work on both ie6 and 7 or just stuck with 6. Paul - Original Message - From: Bret Pettichord

Re: [Wtr-general] fireWatir guess. Re: how to manipulate this?

2007-05-16 Thread Paul Rogers
I beleive innerText is an ie only thing ( it might be thinkiig of innerHTML though) - Original Message - From: Chris McMahon [EMAIL PROTECTED] Date: Wednesday, May 16, 2007 1:58 pm Subject: [Wtr-general] fireWatir guess. Re: how to manipulate this? ie.div(:class ,

Re: [Wtr-general] Supporting IE 7

2007-05-16 Thread Paul Rogers
Message - From: Bret Pettichord [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Wednesday, May 16, 2007 1:55 PM Subject: Re: [Wtr-general] Supporting IE 7 Paul Rogers wrote: I think its important to support both at the moment, as Im sure many people still havent upgraded. If you

Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released

2007-05-14 Thread Paul Rogers
will you be providing some call back mechanism so I am able to add my own spinner when the page is loading? - Original Message - From: Bret Pettichord To: wtr-general@rubyforge.org Sent: Monday, May 14, 2007 3:09 PM Subject: [Wtr-general] Watir Development Gem 1.5.1.1166

Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released

2007-05-14 Thread Paul Rogers
: Bret Pettichord [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Monday, May 14, 2007 5:09 PM Subject: Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released Paul Rogers wrote: will you be providing some call back mechanism so I am able to add my own spinner when the page is loading

Re: [Wtr-general] The Plan for Watir

2007-05-09 Thread Paul Rogers
Id like the winclicker code to disappear and be replaced by a full windows testing library ( How you getting along with that Chris ? ). Enough people seem to want it. Paul - Original Message - From: Bret Pettichord [EMAIL PROTECTED] Date: Wednesday, May 9, 2007 1:40 pm Subject: Re:

Re: [Wtr-general] Watir Data types exported from excel

2007-05-09 Thread Paul Rogers
your code doesnt show where you create spreadsheetdate but if you use either the text or attribute ( i cant remember which, and dont have excel here ) myval = worksheet.range('a2')['value'] # or ['text'] one of these will do the right thing Paul - Original Message - From: Tunde

Re: [Wtr-general] The Plan for Watir

2007-05-08 Thread Paul Rogers
It seems like we need a seperate 'service' that runs next to watir and deals with any type of pop up Psuedo code: # this line tells the other service to expect a # Modal dialog dialog_clicker :expect = 'Windows Modal' , :click = 'ok' @ie.button(:value , 'Show Modal').click # the service now

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Paul Rogers
not so much about what needs to go in, but more whats a good example of rdoc - look at the rails docs - api.rubyonrails.org I think the content is very good. I'll read through the latest source now, and hopefully I'll send you some more thoughts later tonight Paul - Original Message

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Paul Rogers
In my opionion, the rdocs are really dificult to read right now. I think if I was picking up watir now and looking at the rdocs for the first time, Id be a bit disheartened. I would make sure that only relevant ( to the end user ) methods/classes/modules are in the rdoc you can switch off rdoc

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-08 Thread Paul Rogers
Ive also been meaning for ages to write up how the error checkers work. I'll try and do that between now and then end of the week. Paul - Original Message - From: Paul Rogers To: wtr-general@rubyforge.org Sent: Tuesday, May 08, 2007 9:47 PM Subject: Re: [Wtr-general] RDOC

Re: [Wtr-general] Remote Watir

2007-05-07 Thread Paul Rogers
drb might be what you want. Also search the list here - someone posted a link to a library that might be more like what you want. I wish I could remember who/what/when to help narrow your search - Original Message - From: Aaron [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent:

Re: [Wtr-general] Setting focus in a frame in IE7

2007-05-04 Thread Paul Rogers
Assuming your html uses regular type html input type - text name='foo' maxLength=3 and you only want to test that the text field only allows 3 chars, why not use ie.text_field(:index,1).maxLength I guess if the maximum length is imposed by a javascript method on the onKeyPress event, then

Re: [Wtr-general] Do AutoIt3 scripts also work in Firewatir?

2007-05-01 Thread Paul Rogers
seems like we should have some platform independant way of doing this: watir::winclicker.click_dialog_button() for windows it can then either use auto it of winclicker and then for firewatir/linux/mac it can use the appropriate method for that platform. This may be a good thing to try and

Re: [Wtr-general] Watir - Scrpting issues with Dynamic HTML

2007-04-30 Thread Paul Rogers
we cant help at all without seeing the html you are trying to access. If its truly dynamic html then you wont see it in view source, you will however see it if you do ie.html in irb - Original Message - From: Anna [EMAIL PROTECTED] Date: Monday, April 30, 2007 9:14 am Subject:

Re: [Wtr-general] Watir - Scrpting issues with Dynamic HTML

2007-04-30 Thread Paul Rogers
not really, I dont want to have to go through all the stuff on your web site. I'm happy to try and help, but I need to see the HTML you are trying to access, the code you are using, and any exceptions that occur Paul - Original Message - From: Anna [EMAIL PROTECTED] Date: Monday,

Re: [Wtr-general] How to verify title of a HTML Page

2007-04-27 Thread Paul Rogers
assert(my Title , @ie.title) - Original Message - From: SHALINI GUPTA To: wtr-general@rubyforge.org ; [EMAIL PROTECTED] Sent: Friday, April 27, 2007 4:03 AM Subject: [Wtr-general] How to verify title of a HTML Page hi all, I have a project,In which i have to check that

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread Paul Rogers
looking at the html its done using css, not a fire_event Im no css expert, but I think this will be really difficult for us to do in watir - Original Message - From: Charley Baker To: wtr-general@rubyforge.org Sent: Wednesday, April 25, 2007 2:28 PM Subject: Re: [Wtr-general]

[Wtr-general] canoo2watir

2007-04-25 Thread Paul Rogers
This is something Ive been thinking about for a while. Canoo ( http://webtest.canoo.com/ ) is a layer above htmlUnit that takes an xml file and runs it against a web site, clicking buttons, doing assertions etc. Ive written some code that takes this xml format and converts it to a watir

Re: [Wtr-general] canoo2watir

2007-04-25 Thread Paul Rogers
'. It's always helpful and demonstrates the point pretty well and if people want to learn or add on then it gives them a good base. Perhaps it's one other tool than can be run under the Watir api, the others being watir:ie, firefox, safari, selenium. -c On 4/25/07, Paul Rogers [EMAIL

Re: [Wtr-general] Watir T-shirt

2007-04-23 Thread Paul Rogers
I hope you try the code before making the t-shirts ;-) - Original Message - From: Jason [EMAIL PROTECTED] Date: Monday, April 23, 2007 4:48 pm Subject: [Wtr-general] Watir T-shirt I ran this by Bret and he suggested posting it on the Wtr-General to get some feedback from others. So

Re: [Wtr-general] Using Until

2007-04-03 Thread Paul Rogers
isnt Jeffs code kind of over kill for this? def link_there? link_text = Click Me return @ie.link(:text , link_text).exists? end while 1 # add something here to stop infinite loop if link_there? @ie.link(:text , link_text).click? else @ie.link(:text , Next).click end end

Re: [Wtr-general] HTML element physical location on screen.

2007-04-02 Thread Paul Rogers
I think you can do a right click by ie.button(:id, 'xx').fire_event('onContextMenu') if that doesnt work, this might be what you need to help get the coordinates http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/getclientrects.asp

Re: [Wtr-general] little framework

2007-04-02 Thread Paul Rogers
instead of explitily asserting the existance of all the elements, Id try and come up with an easier way, ( this probably wont work, but it might, and may give you some ideas ) def username;$ie.text_field(:name, 'user_name');end def password;$ie.text_field(:name, 'password');end def

Re: [Wtr-general] How to check presence of link by using begin - until method

2007-03-29 Thread Paul Rogers
There are many ways of making a link 'appear' Does it get added by ajax? Is it in a hidden div ? Does it get created by javascript? depending upon how it gets created you may have to do a different approach. Does the value you enter matter, or is it length of string? the following MAY be waht

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-03-28 Thread Paul Rogers
I used this code def x puts press return gets end class Foo; end n = 100 x f= Foo.new n.times do |i| f.instance_eval(@a_variable_#{i} = #{i}) end x with n=100 ruby used 6.35M ( according to task manager), before and after creating the variables when n=1, it used 300M

Re: [Wtr-general] How to get report message after running everytest case

2007-03-28 Thread Paul Rogers
there was some code posted to comp.lang.ruby in the last few days to do this. There might be a way to redirect both to console and file, search google for redirect dos output. I know how to do it in unix, but not sure how to do it in dos. You might also want to look at ci_reporter (available on

Re: [Wtr-general] watir execution from webserver

2007-03-28 Thread Paul Rogers
I wasnt really following the thread, but have you prevented people from running the tests simultaeously? - Original Message - From: Adam Reed [EMAIL PROTECTED] Date: Wednesday, March 28, 2007 3:06 pm Subject: Re: [Wtr-general] watir execution from webserver Thanks David, those

Re: [Wtr-general] little framework

2007-03-28 Thread Paul Rogers
here was one of the ideas I tried. In essence, what it does is create a method called the_search_box that returns the ie.text_field object. Im sure there are some better ways of doing it. Paul require 'watir' class WatirNaming def self.parse_ops( obj_name , opts ) if opts.has_key?

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
Ive been working on some things that ( at least to my mind) simplify how the code represents an html page. It also has several other advantages. I'll probably publish it in a seperate library ( or via the contrib dir ) as for your code, the firsat think i would do is get rid of the global ie.

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
-general] little framework paul could you give us a little taster of your efforts? aidy On 27/03/07, Paul Rogers [EMAIL PROTECTED] wrote: Ive been working on some things that ( at least to my mind) simplify how the code represents an html page. It also has several other advantages

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
yep. My original motivation was to improve the speed of code development and also make it clearer what was going on. I did this and then realised I had almost had an mbt library. With some extra work I got it to work just fine. MBT on web apps have some problems, as the 'state' is not just

[Wtr-general] flash

2007-03-27 Thread Paul Rogers
not related to watir, but I received an email about this today http://osflash.org/autotestflash its a way of testing flash apps. I know nothing about it, except the link, so no questions please ;-) ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Watir / Ruby / Mysql

2007-03-27 Thread Paul Rogers
: '01000' sql Server Error: 14 [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()). Connection failed: SQLState: '08001' sql Server Error: 14 [Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection. Any suggestions? Paul From: Paul Rogers [EMAIL

Re: [Wtr-general] little framework

2007-03-27 Thread Paul Rogers
See below... - Original Message - From: aidy lewis [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Tuesday, March 27, 2007 3:20 PM Subject: Re: [Wtr-general] little framework Paul Rogers says the ParentClass would have methods to validate that everything is there, the title

Re: [Wtr-general] Watir / Ruby / Mysql

2007-03-23 Thread Paul Rogers
-general] Watir / Ruby / Mysql Adam Paul, Thanks for responding. I was just reading the prerequisites section for the Ruby DBI, and it says: ...you'll need to have both the Ruby MySQL module and the C API installed. Can you tell me where I can find these packages? Paul From: Paul

Re: [Wtr-general] handling custom HTML attribute

2007-03-23 Thread Paul Rogers
try searching the list - there was a discussion on custom tags about a month ago Paul - Original Message - From: x y [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Friday, March 23, 2007 4:07 PM Subject: [Wtr-general] handling custom HTML attribute Hi, I'm new to this tool

Re: [Wtr-general] Watir / Ruby / Mysql

2007-03-23 Thread Paul Rogers
the driver, and how do I configure the driver to know about the mysql on the machine? I've dug around on the mysql site for documents on this, but haven't found anything. thanks, Paul Hammer From: Paul Rogers [EMAIL PROTECTED] Reply-To: wtr-general@rubyforge.org To: wtr-general

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

2007-03-20 Thread Paul Rogers
does the acrobat activeX control provide anything useful, like a .text method? 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.

Re: [Wtr-general] Save Image Hangs?

2007-03-20 Thread Paul Rogers
The whole image saving thing is ugly. I have some code ( that some one else helped me with, Im sorry but I forget who right now ) that gives a much nicer saving mechanism, but only saves as a bmp Id rather use that, buts its incompatabile with the jpg we currently can asve as Paul You'd need

Re: [Wtr-general] Watir / Ruby / Mysql

2007-03-20 Thread Paul Rogers
you can also just use odbc - the instructions on the kite bird site will show you how, but you will also need the mysql odbc driver. google will know where that is. Paul - Original Message - From: Adam Reed [EMAIL PROTECTED] Date: Tuesday, March 20, 2007 2:49 pm Subject: Re:

Re: [Wtr-general] Difference in $browser.text

2007-03-19 Thread Paul Rogers
Firewatir is using an incorrect method for text. I sent the fix on, but I guess there has been no new release since. I cant rememeber what I had to do, and Im afraid I dont have it here. I'll try and post it on tonight Paul - Original Message - From: steven [EMAIL PROTECTED] Date:

Re: [Wtr-general] How to send the attachment by mail in Watir/Ruby

2007-03-19 Thread Paul Rogers
this is not really a watir question... but, its quite easy to do attachemnts to messages. I think there is a ruby library that does it, and Im sure action-mailer will too Paul - Original Message - From: Jason He To: wtr-general@rubyforge.org Sent: Monday, March 19, 2007 7:49

Re: [Wtr-general] idle question: @ie.refresh2(3)?

2007-03-18 Thread Paul Rogers
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/refresh2.asp?frame=true - Original Message - From: Chris McMahon [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Sunday, March 18, 2007 11:48 AM Subject: [Wtr-general] idle question: @ie.refresh2(3)? I have

Re: [Wtr-general] Click on button which isn't a button

2007-03-16 Thread Paul Rogers
there is a trick you can use when using stylesheets and id tags ( i forget exactly what/why) , but there are definitely other ways and probably better ways to do it. How much time will it take for him to change the divs to use class='some_css_clss' and ad ids, compared to you finding a way

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Paul Rogers
what site are you running against? the access denied is usually becasue of a frame issue Paul - Original Message - From: Bach Le [EMAIL PROTECTED] Date: Wednesday, March 14, 2007 12:17 pm Subject: Re: [Wtr-general] http_error_checker on IE7 Charley and Paul, I'm running the latest

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Paul Rogers
there is probably no document available to get the navigator version from :-( I guess my simple way of doing this was too simple Paul - Original Message - From: Bach Le [EMAIL PROTECTED] Date: Wednesday, March 14, 2007 1:21 pm Subject: Re: [Wtr-general] http_error_checker on IE7

Re: [Wtr-general] Simulate Right Click Open in New Window

2007-03-14 Thread Paul Rogers
i think you can do it by ie.whatever().fire_event('onContextMenu') then use autoit to send the key sequence Paul - Original Message - From: Jim Hollcraft [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Wednesday, March 14, 2007 7:44 AM Subject: [Wtr-general] Simulate Right

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Paul Rogers
Im sure I came across something for this recently, but I cant remeber ( or find what) now. The best I came up with is to use the navigator object like this irb(main):015:0 ie.document.parentWindow.navigator.invoke('browserLanguage') = en-us you can see what properties/methods are available

Re: [Wtr-general] count specific links

2007-03-13 Thread Paul Rogers
the iterators ( links, buttons etc) mixes in enumerable, so you should be able to do this ( untested though ) matching_links = ie.links.grep(/google/{|l| l.href } should put all the link objects whose href matches /google/ into the matching_links array Paul - Original Message -

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

2007-03-08 Thread Paul Rogers
there is a method ie.show_active that might do what you need Paul - Original Message - From: Charley Baker To: wtr-general@rubyforge.org Sent: Thursday, March 08, 2007 8:53 AM Subject: Re: [Wtr-general] Identifying the id of the element with focus after a tab Hi Mike,

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

2007-03-08 Thread Paul Rogers
class TC_bla Test::Unit::Testcase - Original Message - From: Steven List [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Thursday, March 08, 2007 2:13 PM Subject: [Wtr-general] Assert in helper class in require'd file At the moment, WATIR is kicking my butt in a small way. I

Re: [Wtr-general] Excel Interface Class

2007-03-05 Thread Paul Rogers
I use Open Office. Having the Excel reader is handy, but it obviously doesnt work for me. I started working on some code that would read open office spreadhseet files. It would be great if you could make it work on both, with the same interface, especially as things like firewatir and safari

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-05 Thread Paul Rogers
google advanced search lets you pick the domain you want to search on. You can just delete the files from the file system. There is also some code in contrib to remove cookies. You could easily extend that to do all the files. I always set my browser to 'always get a new page' goto Tools menu

Re: [Wtr-general] Problems accessing modal_dialog from ruby v. 1.8.5

2007-03-01 Thread Paul Rogers
I dont wish to sound sarcastic, but this took me about 2 minutes to find From http://forums.openqa.org/thread.jspa?messageID=17202 The modal_dialog code is not supported with Ruby 1.8.4. Or more specifically, the win32ole changes that we made to support modal dialogs only work with Ruby

Re: [Wtr-general] Using Ruby for email notification?

2007-03-01 Thread Paul Rogers
you can also use the gmailer library. This is often the best thing to use, as you now dont need to know about the exchange settings, and frequently the IT group will prevent desktop PCs from relaying off excahnage, as its a bad security hole Paul - Original Message - From: Adam Reed

Re: [Wtr-general] Problems accessing modal_dialog from ruby v. 1.8.5

2007-03-01 Thread Paul Rogers
no problem. Can you get your sys admin to give you admin priviliges on your machine. THis will make many things easier for you. I think the issue with the versions is that the ole library needs to be recompiled with that version of ruby. - Original Message - From: Lauren [EMAIL

Re: [Wtr-general] How to handle a text_field popup

2007-02-28 Thread Paul Rogers
you're welcome. This type of problem can be difficult to deal with. Intertnationalization, different browser versions and multiple browsers all conspire against us when we do these types of things. Paul - Original Message - From: John [EMAIL PROTECTED] Date: Wednesday, February 28,

Re: [Wtr-general] Watir with Ajax

2007-02-28 Thread Paul Rogers
the exists? method is useful for this. You can also do something like this ie.button(:value , 'Click me for ajax').click until ie.div(:id , 'from_ajax').exists? sleep 1 # add stuff here so you dont wait for ever end I thought that there was also a method like ie..div(:id ,

Re: [Wtr-general] How to handle a text_field popup

2007-02-24 Thread Paul Rogers
to deal with this type of thing in the past, Ive written a seperate thing( either a thread or procees I forget which) that looks for a javascript window, and possibly the text and start that BEFORE entering the text There should be something in winclicker that will do it Paul - Original

  1   2   3   >