이 줄 : 내 HTML 문서에서 실제로 여러 input[@name="address_add[0][city]"]
있기 때문에behat fillField xpath주는 오류가 있습니까? 코드의
$this->fillField('xpath','//fieldset[@id="address-container"]/input[@name="address_add[0][city]"]', "Toronto");
것은 나에게 내 fillField에서 XPath를 사용하려는 이유는이 오류
Form field with id|name|label|value|placeholder "xpath" not found. (Behat\Mink\Exception\ElementNotFoundException)
을주고있다. 나는 xpath가 나를 채울 필드를 구체적으로 목표로 삼을 것이라고 상상한다.
input[@name="address_add[0][city]"]
의 자손을 작성하는 가장 좋은 방법은 fieldset[@id="address-container"]
입니까?