com.github.tamnguyenbbt.dom.Position Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dom-util Show documentation
Show all versions of dom-util Show documentation
Find jsoup elements, relative xpath queries, and Selenium web elements for web service and Selenium-based Web UI testing
package com.github.tamnguyenbbt.dom;
import java.util.ArrayList;
import java.util.List;
final class Position extends ArrayList
{
protected Position()
{
super();
}
protected Position(Position position)
{
super(position);
}
private Position(List position)
{
super(position);
}
protected Position getParentPosition()
{
int size = this.size();
return size > 1 ? new Position(this.subList(0, size-1)) : null;
}
}