0
我正在使用Behat/Mink为我的php应用程序编写验收测试,并发现了一件奇怪的事情:当javascript打开时,Behat找不到输入字段,而当它找到相同的字段时javascript已关闭。behat javascript失败,但没有成功
准确地说:以下情形
Scenario: adding article keywords, no javascript used
Given I am on "articles/create"
When I fill in "Articles[title]" with "About all properties"
...
完全通过。但只要我添加标签的JavaScript上述情况
@javascript
Scenario: adding article keywords
Given I am on "articles/create"
When I fill in "Articles[title]" with "About all properties"
启动失败:
When I fill in "Articles[title]" with "About all properties"
# FeatureContext::fillField()
Form field with id|name|label|value "Articles[title]" not found.
可能是什么原因?
非常感谢!有效!我只需调整步骤如下:**然后我等待5秒**。 – Andrew