我需要用黄瓜测试自动完成字段.我怎样才能做到这一点?我试过了
Scenario: Using Autocomplete
Given I am on the home page
And there are the following users:
|id |name |
|1 |foo |
When I fill in "name" with "f"
Then I should see "foo"
Run Code Online (Sandbox Code Playgroud)
但后来它失败了,因为预计以下元素的内容包括"foo".有任何想法吗?