Re: [Wtr-general] Drop Down Lists (li)

2006-06-14 Thread Zeljko Filipin
If you want to click the first link (List Learning Accounts) you can do it like this:ie.link(:text, List Learning Accounts).click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-14 Thread Adrian Rutter
Hi Bret Using 1.5.1.1037 try this: $ie.link(:text = 'New', :index = 2).click I added multiple attribute support last night for links. How could I get hold of this version. Is there a CVS repo I can download from? Could you also tell me the name of the method, so I could have a look at

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-14 Thread Zeljko Filipin
http://openqa.org/watir/cvs.actionOn 6/14/06, Adrian Rutter [EMAIL PROTECTED] wrote:How could I get hold of this version. Is there a CVS repo I can download from? ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Daniel Browne
Hi, Thanks for sharing this info with us. I have already completed some work in automating operations in ClearQuest (IBM's defect tracking system) using Watir and I'm now looking into extending this work to keep two different defect tracking systems in sync. Yes it's a horrible position to be

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Zeljko Filipin
If I understood you correctly you want to1. check for e-mail every 10 minutes2. if there is any, download it3. parse e-mails4. using watir, report issues to defect tracking systemand you are wondering if that is possible. I think it is. If you need any help, let me know.

[Wtr-general] Can I access caption attribute of a checkbox?

2006-06-14 Thread Amitha Shetty
Hi, Can I access caption attribute of a checkbox? I want to retrieve the display name of the checkbox and this data is present in the caption attribute in the html source. The checkboxes are in the form of a tree. HTML Source is: var a = new Array; a[0] = new Array; a[0]['id'] =

Re: [Wtr-general] Can I access caption attribute of a checkbox?

2006-06-14 Thread Zeljko Filipin
You have input type=checkbox caption=Check Here /? It is not valid html. Check it for yourself at http://validator.w3.org/. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Zeljko Filipin
No, you can also parse e-mail and send e-mail.On 6/14/06, Daniel Browne [EMAIL PROTECTED] wrote: I take it has the ability to onlydownload new mail? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Daniel Browne
Thanks. Another quick question, I don't suppose you have had any experience using Net::POPMail to connect to an MS Exchange Server? I know it's meant for POP only, but I have read that you can connect via a POP3 client using windows credentials with the mailbox name + account (e.g.

Re: [Wtr-general] how to test e-mail applications

2006-06-14 Thread Zeljko Filipin
No, pop only. Good luck with MS Exchange Server! :)On 6/14/06, Daniel Browne [EMAIL PROTECTED] wrote: I don't suppose you have had anyexperience using Net::POPMail to connect to an MS Exchange Server? ___ Wtr-general mailing list

Re: [Wtr-general] Trouble with links in a div

2006-06-14 Thread kwan l
Ok, I guess just have to wait for 1.5. Thanks Bret for all your help. Date: Tue, 13 Jun 2006 21:47:26 -0500From: [EMAIL PROTECTED]To: wtr-general@rubyforge.orgSubject: Re: [Wtr-general] Trouble with links in a divOn 6/13/06, kwan l [EMAIL PROTECTED] wrote: Apparently, the document object

Re: [Wtr-general] Trouble with links in a div

2006-06-14 Thread Zeljko Filipin
You do not have to wait. Get development build from here:http://wiki.openqa.org/display/WTR/Development+BuildsOn 6/14/06, kwan l [EMAIL PROTECTED] wrote: Ok, I guess just have to wait for 1.5. ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] tag a name to an assertation

2006-06-14 Thread Adrian Rutter
Hi, Is it possible to tag a name to an assertation, so if I run this: if $ie.select_list(:name, 'criteria.countryId').exists? assert(true) else assert(false) end if $ie.select_list(:name, 'criteria.lob').exists? assert(true) else assert(false) end And one passes and one fails, I can

Re: [Wtr-general] tag a name to an assertation

2006-06-14 Thread Zeljko Filipin
Try this:assert($ie.select_list(:name, 'criteria.countryId').exists?, select_list(:name, 'criteria.countryId') does not exist) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Drop Down Lists (li)

2006-06-14 Thread Lillis, Dara
this html doesn't look like a drop down list, it looks like a bunch of straightforward links (to me at least). maybe your html is incomplete? if you're really dealing with a drop-down list, I'm guessing you're dealing with what watir calls select lists

Re: [Wtr-general] tag a name to an assertation

2006-06-14 Thread Paul Carvalho
I recommend Zeljko's one-line assert statement, but *if* you really want to keep the format you have now, you can also use the 'flunk' command.For example:if $ie.select_list(:name, 'criteria.countryId').exists? assert(true) else flunk( select_list(:name, 'criteria.countryId') does not exist )

[Wtr-general] assert_text_in_combobox_by_name

2006-06-14 Thread Adrian Rutter
Hi, I am trying to verify a selected option in a combo-box. I have required 'watir_simple' and run a test with this in: $ie.assert_text_in_combobox_by_name('criteria.countryId', 'Select', mesg=nil) I am receiving an undefined method. I have tried to include the module 'Simple' and I get:

[Wtr-general] Understanding WATIR

2006-06-14 Thread Manish Sapariya
Hi, I was wondering how watir maintains and creates the list of controls it sees on a page. I am not sure whether this functionality is directly provided by the WebBrowser control or watir does some magic to get the lists of various controls. To illustrate when I say ie.tables.each { |t|

Re: [Wtr-general] Understanding WATIR

2006-06-14 Thread Bret Pettichord
On 6/14/06, Manish Sapariya [EMAIL PROTECTED] wrote: Hi,I was wondering how watir maintains and creates the list of controls itsees on a page.I am not sure whether this functionality is directly provided by theWebBrowsercontrol or watir does some magic to get the lists of various controls. To

[Wtr-general] thanks for the help

2006-06-14 Thread Adrian Rutter
I have now moved all my current project's tests from Rational to Waitir\Ruby. I estimate my implementation to be anything between 5 - 10 times faster. Also, other stakeholders can use watir to input data etc without an expensive license. If there was a way to use Ruby to test Java and old

Re: [Wtr-general] Understanding WATIR

2006-06-14 Thread David Schmidt
Actually, that *is* supported. However, if you look a sample HTML INPUT element from a page I'm scraping you'll find a clue why that particular example didn't work: INPUT id=SSNEntry_txtSpouseSSN style=\WIDTH: 95px\ value=999 name=SSNEntry:txtSpouseSSN For text_fields, the current text in

Re: [Wtr-general] thanks for the help

2006-06-14 Thread Bret Pettichord
On 6/14/06, Adrian Rutter [EMAIL PROTECTED] wrote: I have now moved all my current project's tests from Rational toWaitir\Ruby. I estimate my implementation to be anything between 5 - 10times faster.Also, other stakeholders can use watir to input data etc without an expensive license.Thanks for

Re: [Wtr-general] assert_text_in_combobox_by_name

2006-06-14 Thread Bret Pettichord
Try:include Watir::Simple ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] very neat trick with Ruby system() (or any other language on Windows)

2006-06-14 Thread Chris McMahon
Hi... As we all know, system(foo.exe) does not return control to the calling script until foo.exe has finished. however, system(start foo.exe) does. This has interesting implications for performance testing and for running many test files simultaneously from a controller script. A colleague

Re: [Wtr-general] Drop Down Lists (li)

2006-06-14 Thread Andy Case
Thanks, that was what I was looking for! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeljko FilipinSent: Wednesday, 14 June 2006 6:20 PMTo: wtr-general@rubyforge.orgSubject: Re: [Wtr-general] Drop Down Lists (li) If you want to click the first link (List Learning

Re: [Wtr-general] very neat trick with Ruby system() (or any other language on Windows)

2006-06-14 Thread Bret Pettichord
On 6/14/06, Chris McMahon [EMAIL PROTECTED] wrote: As we all know,system(foo.exe)does not return control to the calling script until foo.exe has finished.however, system(start foo.exe)does.This has interesting implications for performance testing and for running many test files simultaneously from

[Wtr-general] It appears Watir command-line switches (-b) do not work when using the Ruby switch -s

2006-06-14 Thread Michael Cowan
PREFIX(for users unfamiliar with the command-line switches): 1) Watir provides a command-line switch to hide the browser during the test. It is -b 2) Ruby provides a command-line switch to pass variables into a script from the command-line. It is -s PROBLEM: I can not use both of

Re: [Wtr-general] It appears Watir command-line switches (-b) do not work when using the Ruby switch -s

2006-06-14 Thread Bret Pettichord
On 6/14/06, Michael Cowan [EMAIL PROTECTED] wrote: I can not use both of these 'features'. In fact using the –s Ruby argument prevents you from passing ANY variables to watir. Has anyone else hit this issue? Any help or tricks? Specifically is there an 'in-script' variable I can set to

[Wtr-general] Fwd: [software-testing] Automation Annoyingness

2006-06-14 Thread Bret Pettichord
I thought this email might be of interest here. Jared cross posted to this list and software-testing, a list hosted by Cem Kaner and James Bach. The discussion there was similar to the discussion here, until David Moore said aren't we focussing too much on the tool and not enough on the testing?