Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber scenario fails with spork and akephalos #58

Open
stmichael opened this issue Feb 22, 2011 · 3 comments
Open

Cucumber scenario fails with spork and akephalos #58

stmichael opened this issue Feb 22, 2011 · 3 comments

Comments

@stmichael
Copy link

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:

  • If I run the test without spork, it works.
  • If I run the test with another javascript driver, it works.
  • If I run the test without the @javascript annotation, it works (actually just the fill in step of the text field works, the whole scenario will fail obviously).

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
Copy link

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:

  • akephalos without spork => works
  • selenium with spork => works
  • akephalos with spork => none of the fields get filled in, same errors as above.

What kind of debug info can I provide?

Thanks for the great gem btw! =)

@robmathews
Copy link

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
Copy link
Contributor

Nerian commented Oct 16, 2011

Hello guys,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants