[Wtr-general] Debug information output

2006-03-03 Thread Paatsch, Bernd
Title: Debug information output Hello, My script works fine but prints debug information (see below) to the stdout (command line). Is there a problem in my script? Is there a way to suppress the messages? DEBUG: IE#getObject error Unknown property or method `name'     HRESULT error code:0x

Re: [Wtr-general] Older scripts running really slow...

2006-03-03 Thread Michael Bolton
People may or may not care about misspellings (I'm in the pedantic former group), but computers are notoriously fussy about it at times.  :)   ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, MarkSent: March 2, 2006 5:33 PMTo: wtr-general@rubyforge.orgSub

Re: [Wtr-general] How do you skip a disabled checkbox?

2006-03-03 Thread Paul Carvalho
This worked perfectly - once I spelled "disabled" correctly.  ;-)Thanks!  Paul.On 03/03/06, Zeljko Filipin < [EMAIL PROTECTED]> wrote:This will do it.ie.frame('MainWindow').checkboxes.each { |x| x.set unless x.disabed } ___ Wtr-general mailing list Wtr-g

Re: [Wtr-general] Problem enumerating forms

2006-03-03 Thread Marcus Tettmar
Yes, the (:name, "name") format certainly works in some cases.  It is failing unexpectedly in other situations, such as the google example I provided - but according to the documentation, and the source of the google page, there is no reason why it shouldn't work. On 3/3/06, Michael Bolton <[EMAIL

Re: [Wtr-general] Problem enumerating forms

2006-03-03 Thread Michael Bolton
I'm working out of Head, rather than out of 1.4, but when I try    $IE0.form.methods   I get this:   ArgumentError: wrong number of arguments (0 for 1)    from (irb):10:in `form'    from (irb):10    from ♥:0   which gives me a clue.  I try this:   $IE0.form('f').methods   ...an

[Wtr-general] Taking screen shots

2006-03-03 Thread Paatsch, Bernd
Title: Taking screen shots Hello, I am using watir for a month now and loving it. Is it possible to take screen shots? The idea is in case a test fails that then a screenshot is taken and stored in a folder for later review. Thanks, Bernd ___ W

Re: [Wtr-general] How do you skip a disabled checkbox?

2006-03-03 Thread Hugh Sasse
On Fri, 3 Mar 2006, Paul Carvalho wrote: [...] > ie.frame('MainWindow').checkboxes.each { |x| x.set } > The only problem is [...]a checkbox *may* be disabled [...]. In that > case, [...] it spits out an 'ObjectDisabledException' [...] > there a quick and easy way that I can get this loo

Re: [Wtr-general] How do you skip a disabled checkbox?

2006-03-03 Thread Zeljko Filipin
This will do it. ie.frame('MainWindow').checkboxes.each { |x| x.set unless x.disabed } --http://www.testingreflections.com/blog/3071http://iskusivac.blog.hr/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-

[Wtr-general] How do you skip a disabled checkbox?

2006-03-03 Thread Paul Carvalho
I want to run through a set of checkboxes on an input page and press the [Submit] button in the shortest amount of lines.  Using the API reference, I came up with the following that works for me:> ie.frame('MainWindow').checkboxes.each { |x| x.set }The only problem is that sometimes a checkbox *ma

Re: [Wtr-general] Extracting contents of a list box in a table

2006-03-03 Thread Cain, Mark
Title: Nachricht When adding dynamic content to a table what I have had to do is something like: #Load the contents of the table and its objects into the table variable   table = $ie.table(:index, 2)   table[3][2].click     $ie.text_field(:name, ' ctl00$pageBody$Favo

Re: [Wtr-general] Extracting contents of a list box in a table

2006-03-03 Thread Paul Carvalho
Hi Malcom, I don't know if this will work for you or not, but I solved (what I think is) a similar problem yesterday.  I had to find a way to click a link in a table that isn't particularly distinguishable from a number of other links on the page.  What I did was use relative addressing to solve th

[Wtr-general] Problem enumerating forms

2006-03-03 Thread Marcus Tettmar
Hi,Why does this fail:  $IE0.goto("http://www.google.com/")  $IE0.form( :name, "f").text_field( :name, "q").set("ruby")  $IE0.form( :name, "f").button( :name, "btnG").click This fails with:WIN32OLERuntimeError: Failed to get IEnum Interface    HRESULT error code:0x80020003  Member not found.If

[Wtr-general] Extracting contents of a list box in a table

2006-03-03 Thread Beaton, Malcolm
OK Firstly apologies if this has a really obvious answer that I should have known but it has stumped me and I cant find any really good resources for tables handling (surprisingly) I have this on a page (see HTML at the bottom) and this table is table[2]. The top row has a box to enter text int

Re: [Wtr-general] How to start more Tests

2006-03-03 Thread Benjamin Hemken
Title: Nachricht Thanks for the fast response.   1. Test def start_test_1   Thread.new { test1 }   Thread.pass end   def test1   $ie = Watir::IE.new   $ie.goto "this is just a test url.com"   $ie.text_field(:name, "test").set "Input"   $ie.form(:name, "form").submit end   2. Test def s