holmos.webtest.element.locator.LocatorChain Maven / Gradle / Ivy
package holmos.webtest.element.locator;
import java.util.ArrayList;
import java.util.List;
/**Locator链,保存了多级元素的locator链
* 为了保证能在运行的时候寻找locator
*
* @author 吴银龙([email protected])
* */
public class LocatorChain {
private List infoNodes;
public List getInfoNodes() {
return infoNodes;
}
public LocatorChain(){
this.infoNodes=new ArrayList();
}
public void addNode(LocatorValue infoNode){
this.infoNodes.add(infoNode);
}
public void addParentNode(List parentNode){
this.infoNodes.addAll(parentNode);
}
}