0
我正在测试behat和填写表单的页面。 我在页面html中有两个密码输入。为什么Behat/Mink无法通过ID找到输入字段,只能通过名称找到?
首先是在最前面:
<input id="login_password_0" class="form-control " type="password" placeholder="Slaptažodis" autocomplete="off" name="password">
其次在底部:
<input id="password" class="form-control validate" type="password" value="" name="password">
然后我跑贝哈特/貂试验用:
And I fill in "password" with "test"
它填补第一个和我需要第二个被填充。
如何理解文档,该元素可以通过'id | name | label | value'找到并填充。
P.S.更改HTML不是一个选项。