Package | Description |
---|---|
student.web |
Modifier and Type | Interface and Description |
---|---|
interface |
HtmlHeadingElement
This interface represents a specialized
HtmlElement that
represents an HTML heading tag--e.g., H1, H2, H3, H4, H5, or H6. |
Modifier and Type | Method and Description |
---|---|
HtmlElement |
WebBot.PageLocation.currentElt()
Get the current element.
|
HtmlElement |
WebBot.getCurrentElement()
Get the HTML element of interest that the robot is currently standing
on.
|
HtmlElement |
TurboWebBot.getElementById(String id)
Get the first HTML element with the specified id on this web page,
using the HTML id="..." attribute on the element.
|
HtmlElement |
TurboWebBot.getFirstMatchingElement(String tagType)
Get the first HTML element of the specified type on this web page.
|
HtmlElement |
TurboWebBot.getFirstMatchingElement(String parentTag,
String... childTag)
Get the first HTML element of the specified type on this web page, based
on the context where the element appears.
|
HtmlElement |
WebBot.Page.xPathFindFirst(String xpathQuery) |
Modifier and Type | Method and Description |
---|---|
List<HtmlElement> |
WebBot.PageLocation.elts()
Get the current list of elements of interest.
|
List<HtmlElement> |
TurboWebBot.getAllElementsMatchingXpath(String xpathExpression)
Find nodes within the current document using an XPATH expression.
|
List<HtmlElement> |
TurboWebBot.getAllMatchingElements(String tagType)
Get all HTML elements of the specified type on this web page.
|
List<HtmlElement> |
TurboWebBot.getAllMatchingElements(String parentTag,
String... childTag)
Get all HTML elements of the specified type on this web page, based
on the context where the elements appear.
|
List<HtmlElement> |
TurboWebBot.getElementsByCssClass(String cssClass)
Get all the HTML elements with the specified CSS class on this web
page, using the HTML class="..." attribute on the elements.
|
List<HtmlElement> |
WebBot.Page.xPathFindAll(String xpathQuery) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
WebBot.isHeading(HtmlElement element)
Determine whether a given HTML element is a heading tag.
|
protected boolean |
WebBot.isLink(HtmlElement element)
Determine whether a given HTML element is an anchor tag with an HREF
attribute.
|
protected int |
WebBot.levelOf(HtmlElement element)
Convert an HTML element representing a heading tag into its
corresponding level number.
|