[rspec-devel] New Gem: spec/ui

aslak hellesoy aslak.hellesoy at gmail.com
Thu Dec 28 12:05:23 EST 2006


On 12/27/06, Shane Duan <shane.duan at gmail.com> wrote:
> I see.  I thought it would be better to have the code related to
> selenium in the selenium gem.
>

The only Selenium-related code in spec/ui is selenium_helper.rb, which
is just monkey patching Selenium::SeleniumDriver to make it work with
the rest of spec/ui. I doubt this code would be useful outside
spec/ui.

The screenshot-related code is completely decoupled from Selenium and
is being used by the Watir example as well. In fact, the screenshot
stuff can be used in conjunction with *any* Ruby-based UI testing
library - all it does is to provide some convenience methods for
screenshot capturing that can be called from a spec's teardown block.

Aslak

> I will be busy with other stuff in the meanwhile anyway.  I might
> never get to this part since you have already done it and I am using
> rspec.
>
> Cheers
> Shane
>
> On 12/27/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > On 12/27/06, Shane Duan <shane.duan at gmail.com> wrote:
> > If it's for your own project - go a head - it's meant to be used.
> >
> > If it is to release another gem or something, I'd prefer patches to
> > spec/ui. It's confusing for users to have too many options to do the
> > same thing.
> >
> > Aslak
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the rspec-devel mailing list