在处理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
发布于 2015-07-02 21:57:30
我检查了源代码,似乎(尚未发布)版本0.10.4已经修复。
@FindBy(className = "small")
FluentList<FluentWebElement> smalls;提交的详细信息:https://github.com/FluentLenium/FluentLenium/commit/2e22e244caa0b4b178ec72ceddd8680c6fbe4c46
https://stackoverflow.com/questions/31186171
复制相似问题