<i>
@FindAll(@FindBy(xpath = ".//input[contains(@name,'adv_xfer_fields')
and contains(@name,'::amounts')]"))
List <WebElement> amounts;
</i>
私は入力フィールドに動的なWebテーブルを持っています。理想的にはこれに値を渡す必要があります。しかし、私はこれを実装する方法がわからないのですか?List FindALL webelementを実装する方法
public List<WebElement> getAllAmounts() {
return amounts;
}
あなたの質問を1として
FindBy基準は1つだけですが、FindAllを使用する必要はありますか?これを参照してください - https://stackoverflow.com/questions/25914156/difference-between-findall-and-findbys-annotations-in-webdriver-page-factory – Grasshopper