Re: [Wtr-general] Microsoft Support for Ruby

2007-06-01 Thread Phlip
tml > > Here is a response from Microsoft's lead Ruby developer. > > http://www.iunknown.com/2007/05/microsoft_and_i.html MS wants to play with the Big Boys now. -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_

[Wtr-general] [ANN] Test Driven Ajax - assert_xpath, assert_javascript, & assert_ajax

2007-04-14 Thread Phlip
bsite inside an IFRAME. -- Phlip http://flea.sourceforge.net/PiglegToo_1.html ___ Wtr-general mailing list [EMAIL PROTECTED] http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-02-01 Thread Phlip
Richard Conroy wrote: > I am curious what everyone thinks of this (new) book. > > It starts off well, with the first example tutorial being > how to test if an uninstaller worked. I'm hooked. Brian's no slacker, and he started with the T-word! -- Phlip http://c2

Re: [Wtr-general] Syntax for relative attributes

2006-12-19 Thread Phlip
inside a ? function?? I'm going back to a paranoid language with static typing and everything!" Now I just have to figure out how to stop adding get_ and I'm there. Who wants to write a tiny book /Elements of Ruby Style/ ? -- Phlip http://www.greencheese.us/ZeekLand <--

Re: [Wtr-general] Skipping Tests

2006-12-01 Thread Phlip
ecouple your code. Are most of your tests on the layer under the GUI? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Finding the size of IE

2006-11-13 Thread Phlip
s leave a test case running all night in a loop, and see if it crashes. If I had Purify, I could try Purify -> Ruby -> IE -> JavaScript. Except all of those items probably leak like crazy (except Ruby, of course!), so you would not be able to tell the trees for the forest. --

Re: [Wtr-general] handle exhaustion

2006-11-09 Thread Phlip
> >Now how to get rid of all the IEs that pop up in a tested state during > >the run? > > $HIDE_IE=true I think this is what you are looking for. > > Brian Won't they still exist in memory? -- Phlip http://www.greenchee

Re: [Wtr-general] WATIR Extension Toolkit (WET)

2006-11-07 Thread Phlip
Can you use WET's capture system to extrude scripts which you then run in Watir >1.4? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/l

[Wtr-general] Wiki -> RSpec -> Watir

2006-11-07 Thread Phlip
les. It stitches together the RSpec environment, tests all the cases, and then changes each case's result_color to reflect its passing state. What feature should I add next? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! ___ W

Re: [Wtr-general] invoking tests in right order

2006-11-07 Thread Phlip
l from one test case: def test_universe() step_bigBang() step_inflationPhase() step_condensatePhase() step_quasarIgnition() # etc end -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] invoking tests in right order

2006-11-07 Thread Phlip
ecords, each in their intermediate state, and push them to the next state. The tests can run in any order because the data refreshes between test cases. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailin

Re: [Wtr-general] screenshots

2006-11-02 Thread Phlip
likes redundancy, or something else is going on! In conclusion, thanks! I will replace the getHTML with that, to force a more accurate snapshot. -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Storing a redirected url as a variable

2006-10-23 Thread Phlip
Lennon wrote: > Ah. Thank you! Allow me to answer your meta-question. To learn what a Ruby object can do, write this: puts object.public_methods.sort You would have seen 'url' in the Us. -- Phlip http://c2.com/cgi/wiki?ZeekLand &

[Wtr-general] screenshots

2006-10-21 Thread Phlip
f dynamic elements, etc. Now what am I missing? Can I get the HWND from @browser, then copy its GDI display context? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge

Re: [Wtr-general] form(:id, 'a/b')

2006-09-30 Thread Phlip
> Then .form(:name) works for me, but not for the id. I suspect that .form(:name, 'x') worked where x was 1 letter, but not many letters. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing

Re: [Wtr-general] form(:id, 'a/b')

2006-09-29 Thread Phlip
cept for nitwits like me who refuse to learn basic CGI before leaping into naughty topics like AJAX! -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] form(:id, 'a/b')

2006-09-29 Thread Phlip
Bret Pettichord wrote: > ruby -e "require 'watir'; puts Watir::IE::VERSION" 1.5.1.1065 My test suite is checked into the HEAD here, if you want to tweak its forms cases: http://rubyforge.org/projects/minirubywiki/ -- Phlip http://c2.com/cgi/wiki?Z

Re: [Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Phlip
venience, not to use the . Should I use it? and would CGI still work? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] form(:id, 'a/b')

2006-09-28 Thread Phlip
Watirists: My website generates forms on the fly, and names them after relative paths and files, with a / between them. When I use wie.form(:id, 'path/file'), I can't hit the form. Is this a bug? Is the / screwing up the lookup? -- Phlip http://c2.com/cgi/wiki?ZeekLand

Re: [Wtr-general] Watir_Simple & Handle Exhaustion

2006-09-24 Thread Phlip
ing in the exactly way they tell us to. If my lowly $ie handle goes away, the COM ref-count should go to zero, the IE browser should garbage-collect itself, and all the resources should free! -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___

Re: [Wtr-general] Watir_Simple & Handle Exhaustion

2006-09-23 Thread Phlip
Bret Pettichord wrote: > Phlip wrote: > > I am still wondering how anyone TDDs with this system. > Did you see the recent post by Aslak Hellesoy where he showed a simple > framework for using Watir with Rspec to do TDD? (or BDD) I do not wonder how to write Watir tests bef

[Wtr-general] Watir_Simple & Handle Exhaustion

2006-09-22 Thread Phlip
d grab the IE object it holds. (Is this @@browser?) Does anyone have a complete, TDD-ready example of Watir_Simple in action, such as one testing a public web site? So I can run it and report if it exhausts my handles? -- Phlip http://c2.com/cgi/wiki?ZeekLand <

Re: [Wtr-general] HOW TO READ DOM elements from Watir

2006-09-17 Thread Phlip
Bret Pettichord wrote: > BTW, i have used this technique ALL THE TIME in my work on Watir. > > Another good method is "ole_get_methods" which is handy when you are > trying to pull some information from an element. > Phlip wrote: > > ...how to query such >

Re: [Wtr-general] HOW TO READ DOM elements from Watir

2006-09-17 Thread Phlip
ction and code browsing features. Then port what you learn back to Ruby!;) -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] HOW TO READ DOM elements from Watir

2006-09-15 Thread Phlip
ick on an element, Firefox makes the real thing flash its borders. That makes me wish I needed to use this feature now! If your program needs them, then you must "iterate through ActiveX collection objects", so Google for that. In Ruby's WinOLE system. ;-) -- Phlip http://www

Re: [Wtr-general] Watir on Linux

2006-09-13 Thread Phlip
ing and adapting for a long time. Why not use Selenium? I think it injects JavaScript, just like Koos's sample, so it might be more portable. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@ru

Re: [Wtr-general] Watir on Linux

2006-09-12 Thread Phlip
Manish Sapariya wrote: > However, few people have ported and changed necessary file to make > it work on MacOS and Linux. Which browser? I have researched how to do it thru KParts to Konqueror, for example. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- N

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Phlip
> Bret Pettichord wrote: > > > This code works with 1.5. > > Can I install that from gem? I just found watir-1.5.1.1065.gem, and the E went away in the test run. Now how to get rid of all the IEs that pop up in a tested state during the run? -- Phlip http://c2.com

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Phlip
e by one, because of poor test isolation. A failure diagnostic would contain the page in the state the last case left it. So how did you avoid repeatedly opening and closing the IE object? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Phlip
an install.rb. >From there, how do I, uh, install? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Phlip
.rb:78:in `new_process' ./tests/domSuite.rb:19:in `setup' -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] handle exhaustion

2006-09-09 Thread Phlip
end of a test batch, shouldn't that take down all the zombie IE Automation objects it spawned? And their handles? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http:/

Re: [Wtr-general] handle exhaustion

2006-09-08 Thread Phlip
David Schmidt wrote: > What version of Watir are you running? 1.4.1, per this version dump: C:\Documents and Settings\Phlip>gem query -l watir *** LOCAL GEMS *** fxri (0.3.3) Graphical interface to the RI documentation, with search engine. fxruby (1.6.1, 1.2.6) FXRuby is th

[Wtr-general] handle exhaustion

2006-09-08 Thread Phlip
test negatives.) So now the effect happens much faster. What to do? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Global Variables

2006-09-01 Thread Phlip
Watirists would make their IE object global, and reuse it between test cases. This mild efficiency doesn't violate the Test Isolation guideline when you put $wie.goto("about:blank") between each test case. -- Phlip http://c2.com/cg

Re: [Wtr-general] I am a newb

2006-09-01 Thread Phlip
e reveal() technique I suggested. How would that look in Watir code? The two techniques could reinforce each other! -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] I am a newb

2006-09-01 Thread Phlip
Paul Carvalho wrote: > Should be installed with Ruby itself. On my hard drive, I found a copy > located in the /ruby/doc folder. Ouch right just found it: C:/ruby/doc/ProgrammingRuby.chm I gave up too soon. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- N

Re: [Wtr-general] I am a newb

2006-09-01 Thread Phlip
echnique, could they describe it in Watir terms? to wtr-general@rubyforge.org ? Using it will give this Watir initiate more propulsion than a capture/playback system! -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! ___ Wtr-genera

Re: [Wtr-general] javascript stuck in cache

2006-08-30 Thread Phlip
Paul Rogers wrote: > type="text/javascript"> Thanks - I already use that trick for graphics, but I forgot it here! And - oh joy - you can't just put in one big number, you have to change it all the time. -- Phlip http://c2.com/cgi/wiki?Zee

[Wtr-general] javascript stuck in cache

2006-08-30 Thread Phlip
use my latest version? (I researched this once, ages ago, for the IE side; I want to start first here at the Watir side...) (It's the Webrick server; both with servlets and CGI pages.) -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NO