I'm writing acceptance tests for my php application using Behat/Mink and found out a strange thing: Behat can not find an input field when javascript is on, while it finds the same field when javascript is off.
To be precise: the following scenario
Scenario: adding article keywords, no javascript used
Given I am on "articles/create"
When I fill in "Articles[title]" with "About all properties"
...
passes perfectly. But as soon as I add tag javascript to the above scenario
@javascript
Scenario: adding article keywords
Given I am on "articles/create"
When I fill in "Articles[title]" with "About all properties"
it starts to fail:
When I fill in "Articles[title]" with "About all properties"
# FeatureContext::fillField()
Form field with id|name|label|value "Articles[title]" not found.
What might be the reason?