You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: