<i>
@FindAll(@FindBy(xpath = ".//input[contains(@name,'adv_xfer_fields')
and contains(@name,'::amounts')]"))
List <WebElement> amounts;
</i>
입력란에 동적 웹 테이블이 있습니다. 이상적으로이 값을 전달해야합니다. 그러나 이것을 구현하는 방법을 모르겠습니다.List FindALL webelement 구현 방법
public List<WebElement> getAllAmounts() {
return amounts;
}
FindBy 기준이 하나뿐이므로 FindAll을 사용해야하는 이유는 무엇입니까? 이것을 참조하십시오 - https://stackoverflow.com/questions/25914156/difference-between-findall-and-findbys-annotations-in-webdriver-page-factory – Grasshopper