bernerdschaefer / akephalos

Headless HTMLUnit powered browser for Capybara
bernerdschaefer.github.com/akephalos
MIT License
338 stars 50 forks source link

Cucumber scenario fails with spork and akephalos #58

Open stmichael opened 13 years ago

stmichael commented 13 years ago

I have the following setup for my project: I'm using cucumber, spork and akephalos. I have a cucumber scenario where I fill a value into a text field with a certain id, press a submit button and then check the content of the website that should have been updated by AJAX. Since the website is using AJAX, this scenario is annotated with @javascript.

Unfortunately this combination of gems doesn't work for me. I'm getting the following error in the step that tries to fill in the value to the text field: "cannot fill in, no text field, text area or password field with id, name, or label 'email' found"

As soon as a scenario fails, cucumber saves the content of the page that caused the failure to a file. I can open this file with my browser and I actually do see a text field with id='email'. So the failure cannot be caused by the absence of such a text field. So I experimented a bit further and I got the following interesting results:

Can you please help me with this issue?

I'm using Ruby 1.9.2-p136, cucumber 0.10.0, spork 0.9.0.rc3 and akephalos 0.2.5.

clemensp commented 13 years ago

I am having the exact same issue as stmichael.

My environment: ruby 1.9.2p0 cucumber (0.10.0) spork (0.9.0.rc2) akephalos (0.2.5)

I've tried nearly identical alternative setups as the OP as well:

What kind of debug info can I provide?

Thanks for the great gem btw! =)

robmathews commented 13 years ago

Yeah, I was playing around in the same environment, using this project on github: git://github.com/mattheworiordan/Full-stack-testing.git. It's not quite configured for spork, so I fixed that, and presto same results.

I just mention it b/c it makes it really easy to reproduce the problem.

Nerian commented 12 years ago

Hello guys,

You may want to use https://github.com/Nerian/akephalos2 and check the section "Running akephalos with Spork"