On Nov 4, 8:27 pm, Chuck van der Linden <[email protected]> wrote: > Is redirect_to another method provided as part of watirspash? I'm > not familiar with it.
Yes and it's nothing complicated. It will just instantiate the Page Object class: https://github.com/jarmo/WatirSplash/blob/master/lib/watirsplash/page/base.rb#L28-30 > While the 'here's this cool thing we can do' format of presenting the > info is good, there's a part of me that might prefer a before/after > approach that shows how you'd have to do this stuff without the modify > trick, and then shows how it can be improved. It might make the > benefit/value of doing it this way more apparent, since I suspect > there's a little more value here than just making the tests slightly > more readable. I thought about that too, but then decided not to put that additional section there. The before part is essentially not using any Page Objects, but just writing tests in linear fashion. The modify method just helps to write shorter code, but it isn't anything mandatory if you'd like to use Page Objects in your tests. Jarmo Pertman ----- IT does really matter - http://itreallymatters.net > > On Nov 4, 9:04 am, Jarmo Pertman <[email protected]> wrote: > > > > > > > > > If there's anything too confusing - let me know and i'll try to > > explain it. > > > Jarmo Pertman > > ----- > > IT does really matter -http://itreallymatters.net > > > On Nov 3, 7:31 pm, Chuck van der Linden <[email protected]> wrote: > > > > Great stuff, thanks for taking the time to post that.. I'm still > > > digesting it as you've gone slightly beyond my experience level with > > > Ruby, (but that's good, it forces me to learn new stuff) > > > > On Nov 2, 8:51 am, Jarmo <[email protected]> wrote: > > > > > If anyone's interested then i've written a blog post about Awesome Page > > > > Objects > > > > -http://itreallymatters.net/post/12242886944/awesome-page-objects-in-t... > > > > > Check it out and let me know in the comments or here what do you thing > > > > about the API and the solution itself. > > > > > Jarmo Pertman > > > > ----- > > > > IT does really matter -http://itreallymatters.net -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
