Re: [rspec-users] problem using cucumber with selenium

2009-04-20 Thread roovo
2009/4/20 Barun Singh > found the answer via some more searching; it appears this is a bug with > webrat that hasn't been fixed yet; if i add > "selenium.wait_for_page_to_load(5)" > after the click_button command, things work fine. > I hit a similar problem and ended up putting the following in

Re: [rspec-users] problem using cucumber with selenium

2009-04-20 Thread Barun Singh
found the answer via some more searching; it appears this is a bug with webrat that hasn't been fixed yet; if i add "selenium.wait_for_page_to_load(5)" after the click_button command, things work fine. i've opened up a new ticket in the webrat lighthouse acct. On Mon, Apr 20, 2009 at 3:10 PM, Ba

[rspec-users] problem using cucumber with selenium

2009-04-20 Thread Barun Singh
I'm trying to use Cucumber with Selenium to test my app. I have a method called "login_as" defined as follows: def login_as(user, password) visit new_session_path fill_in "username", :with => user.username fill_in "password", :with => password click_button('Go') response.bo