public class FindDataListElement extends FindMultiElement<FindDataListElement>
文件名:DataListBy.java
用途: 提供在辅助化测试中,通过一个元素定位方式,获取一列数据(多条数据)的方法,并提供各种方式的元素返回方式
编码时间:2020年10月14日下午6:45:51
修改时间:2020年10月14日下午6:45:51
firstEmpty
action, brower, elementData, elementList, isAutoSwitchIframe, read
Constructor and Description |
---|
FindDataListElement(AbstractBrower brower)
构造方法,初始化浏览器对象
|
Modifier and Type | Method and Description |
---|---|
Set<Element> |
getRandomElement(int length)
用于返回指定个数的随机元素,若未调用
FindMultiElement.find(String, String...) 方法对元素进行查找,
或者查无元素时,则调用该方法时会抛出超时异常。 |
find, getAllElement, getElement, removeElement, setFirstIsEmpty, size
autoSwitchContext, autoSwitchFrame, clearAction, findElement, getBy, getElementData, recognitionElement, setAction, setAutoSwitchIframe, setReadMode, setWaitTime, switchAppNativeContext, switchFrame, switchParentFrame, switchRootFrame, switchWebViewContext, toElementIndex
public FindDataListElement(AbstractBrower brower)
brower
- AbstractBrower
类对象public Set<Element> getRandomElement(int length)
FindMultiElement.find(String, String...)
方法对元素进行查找,
或者查无元素时,则调用该方法时会抛出超时异常。length
- 随机元素个数Set
集合Copyright © 2024. All rights reserved.