Modifier and Type | Field and Description |
---|---|
WebBot.Page |
page
The page containing this location.
|
int |
pos
The position within the list of elements of interest.
|
Constructor and Description |
---|
PageLocation(WebBot.Page p)
Create a new page location with its own list of elements of
interest.
|
Modifier and Type | Method and Description |
---|---|
HtmlElement |
currentElt()
Get the current element.
|
List<HtmlElement> |
elts()
Get the current list of elements of interest.
|
boolean |
hasCurrentElt()
Determine whether this position refers to a current element.
|
int |
len()
Get the length of the current list of elements of interest.
|
void |
setElementXpath(String xpath)
Set the xpath expression defining the elements of interest
on this page, which will reset the current position and the
current lis of elements of interest.
|
public WebBot.Page page
public int pos
public PageLocation(WebBot.Page p)
p
- The pagepublic void setElementXpath(String xpath)
xpath
- The new xpath expressionpublic int len()
public List<HtmlElement> elts()
public boolean hasCurrentElt()
public HtmlElement currentElt()