1
세 개의 라디오 버튼이있는 양식이 있습니다.각도기의 라디오 버튼 값을 선택하십시오.
<form name="contact">
<label>Type</label>
<label>
<input type="radio" id="car" value="car" checked>Car
</label>
<label>
<input type="radio" id="boat" value="boat">Boat
</label>
<label>
<input type="radio" id="home" value="home">Home
</label>
</form>
저는 분도기에 통합 테스트를 쓰고 있습니다.
라디오 버튼 값을 선택하는 데 문제가 있습니다. 나는 ID로 clicking
을 시도했다 :
//click boat
element(by.id('boat')).click();
내 테스트를 실행할 때, 나는 다음과 같은 오류 얻을 :
이 일 것으로 보인다Message:
Failed: No element found using locator: By(css selector, *[id="boat"])
Stack:
NoSuchElementError: No element found using locator: By(css selector, *[id="boat"])