Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-04-05 Thread Mateusz Juraszek
>> Another problem I met is with waiting for response after "press button" >> method >> All the time I get response with code before button pressed >> It's connected with selenium_session.rb code and require me to change a >> bit > (...) >> I don't know why I have to change it >> Thanks > > That

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-04-05 Thread Balint Erdi
Hi Mateusz, > > hi Ben > > I am newbie with cucumber and bdd. I was wondering if you can take a > look on my problems. > I have similar problem like Balint. I test my own and clearance features > with selenium and webrat. I don't have to say that with werbrat > everything is perfect. When I r

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-04-05 Thread Mateusz Juraszek
Balint Erdi wrote: > Ben Mabey wrote: > >> Couple things I'd like to point out. In your enhanced.rb you don't need >> to do the Before hook yourself. You can just require >> 'database_cleaner/cucumber'. I've updated your gist to use that. >> In your plain.rb it seems like you are trying to trun

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-25 Thread Balint Erdi
Ben Mabey wrote: > > With that step definition you don't need to pollute all of your features > with the steps to login. As it turns out you can have the best of both > worlds. Meaning, if you want webrat to use the faster post method only > for non-selenium runs you can. Like so: > > Given

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-25 Thread Ben Mabey
Balint Erdi wrote: Ben Mabey wrote: Couple things I'd like to point out. In your enhanced.rb you don't need to do the Before hook yourself. You can just require 'database_cleaner/cucumber'. I've updated your gist to use that. In your plain.rb it seems like you are trying to truncate your

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-25 Thread Ben Mabey
Balint Erdi wrote: Hey Ben, thanks a lot. The problem I am experiencing now is that information stored in the session does not seem to be retained between steps (again, only in the case of selenium sessions, plain sesssion work fine). So the login function works fine now but when I go to anot

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-25 Thread Balint Erdi
> Hey Ben, thanks a lot. > > The problem I am experiencing now is that information stored in the > session does not seem to be retained between steps (again, only in the > case of selenium sessions, plain sesssion work fine). So the login > function works fine now but when I go to another page

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-25 Thread Balint Erdi
Ben Mabey wrote: > Couple things I'd like to point out. In your enhanced.rb you don't need > to do the Before hook yourself. You can just require > 'database_cleaner/cucumber'. I've updated your gist to use that. > In your plain.rb it seems like you are trying to truncate your database > just o

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-24 Thread Ben Mabey
Balint Erdi wrote: @Ben: Thank you, I fixed that and am using your database_cleaner to truncate the database. Turns out the problem (or rather, another problem) was that I set up a separate environment (selenium) for the selenium tests but still some of the steps used the test environment and

Re: [rspec-users] [cucumber] webrat+selenium integration problem: record n

2009-03-24 Thread Balint Erdi
@Ben: Thank you, I fixed that and am using your database_cleaner to truncate the database. Turns out the problem (or rather, another problem) was that I set up a separate environment (selenium) for the selenium tests but still some of the steps used the test environment and thus the database re