【发布时间】:2015-07-02 13:37:09
【问题描述】:
在 FluentLenium 中使用页面时,@FindBy 可用于定位 FluentWebElement:
@FindBy(id = "one")
FluentWebElement exactlyOne;
这工作得很好。但现在我需要定位多个元素:
@FindBy(tagName = "p")
List<FluentWebElement> allP;
我不能让它工作。我尝试将字段声明为:List、FluentList 甚至 List,但我总是得到 null。
我正在使用:Selenium:2.46.0,FluentLenium:0.10.3
【问题讨论】:
标签: selenium fluentlenium