Hi! I''m using cucumber + selenium and I love it. However I''m looking to add some methods (example: click_and_wait etc) to the lib. Therefore looked around a bit and I got two questions: Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap with its propose with webrat with cucumber or I''m missing a point? Secondly, are there any plans to "officially" support selenium along with webrat? (or perphaps cucumber project is just waiting someone with such needs to stand up go for it.) Cheers, Priit
On Mon, Sep 29, 2008 at 11:29 AM, Priit Tamboom <priit at mx.ee> wrote:> Hi! > > I''m using cucumber + selenium and I love it. However I''m looking to > add some methods (example: click_and_wait etc) to the lib. Therefore > looked around a bit and I got two questions: > > Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap > with its propose with webrat with cucumber or I''m missing a point? >rspec-ui is defunct - as far as i am concerned. noone seems to be maintaining it, and cucumber should replace it.> Secondly, are there any plans to "officially" support selenium along > with webrat? (or perphaps cucumber project is just waiting someone > with such needs to stand up go for it.) >There are already some examples: http://github.com/aslakhellesoy/cucumber/tree/master/examples/selenium I''m not sure I understand what there is to "support" about it. You can use anything inside Cucumber step definitions - Cucumber shouldn''t have to "support" it. Unless there are specific things like Rails, which has some transaction support in Cucumber. Aslak> Cheers, > Priit > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Priit Tamboom wrote:> Hi! > > I''m using cucumber + selenium and I love it. However I''m looking to > add some methods (example: click_and_wait etc) to the lib. Therefore > looked around a bit and I got two questions: > > Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap > with its propose with webrat with cucumber or I''m missing a point? >Rspec-UI is just a set of helpers and startup scripts for using browser based testing frameworks (such as Selenium or Watir) in Rspec. Webrat is a Acceptance testing tool which simulates the browser in memory (rather than running through a real browser). The current rspec-ui project was setup before stories or features so the project was focused on interacting with the browser in specs (Which we don''t do now). So Rspec-UI while it still has some useful helpers is rather out of date with Rspecs current directions.> Secondly, are there any plans to "officially" support selenium along > with webrat? (or perphaps cucumber project is just waiting someone > with such needs to stand up go for it.) >Interestingly Webrat can drive Selenium: http://github.com/brynary/webrat/tree/master/selenium_spike.rb It still however cannot do all the JavaScript magic and complex UI interactions that selenium can do. -- Joseph Wilk http://www.joesniff.co.uk
Wow, thanks for fast replies!> rspec-ui is defunct - as far as i am concerned. none seems to be > maintaining it, and cucumber should replace it.Yep, feels so.> I''m not sure I understand what there is to "support" about it. You can > use anything inside Cucumber step definitions - Cucumber shouldn''t > have to "support" it. Unless there are specific things like Rails, > which has some transaction support in Cucumber.no-no, I''m already using it, it works great. However I got some trouble with those transactions with rails. About adding methods, I will go to talk with selenium devs about to add some missing methods to ruby lib. Cheers, Priit