Package | Description |
---|---|
com.abmash.api |
Provides the main classes to control browsers and to find and interact with elements on the current web page.
|
com.abmash.api.query |
Provides classes to find elements on web pages.
|
com.abmash.core.query.predicate |
Provides classes that represent all possible query predicates.
|
Modifier and Type | Method and Description |
---|---|
Query |
Browser.query(Predicate... predicates) |
Modifier and Type | Method and Description |
---|---|
static Predicate |
QueryFactory.above(HtmlElement element)
Finds elements visually above the given
HtmlElement . |
static Predicate |
QueryFactory.above(HtmlElements elements)
Finds elements visually above the given
HtmlElements . |
static Predicate |
QueryFactory.above(Predicate... predicates)
Finds elements visually above the elements that match the given predicates.
|
static Predicate |
QueryFactory.aboveAll(HtmlElement element)
Finds elements visually above all the elements that match the given
HtmlElement . |
static Predicate |
QueryFactory.aboveAll(HtmlElements elements)
Finds elements visually above all the elements that match the given
HtmlElements . |
static Predicate |
QueryFactory.aboveAll(Predicate... predicates)
Finds elements visually above all the elements that match the given predicates.
|
static Predicate |
QueryFactory.and(Predicate... predicates)
Defines a boolean "and" predicate.
|
static Predicate |
QueryFactory.below(HtmlElement element)
Finds elements visually below the given
HtmlElement . |
static Predicate |
QueryFactory.below(HtmlElements elements)
Finds elements visually below the given
HtmlElements . |
static Predicate |
QueryFactory.below(Predicate... predicates)
Finds elements visually above the elements that match the given predicates.
|
static Predicate |
QueryFactory.belowAll(HtmlElement element)
Finds elements visually below all the elements that match the given
HtmlElement . |
static Predicate |
QueryFactory.belowAll(HtmlElements elements)
Finds elements visually below all the elements that match the given
HtmlElements . |
static Predicate |
QueryFactory.belowAll(Predicate... predicates)
Finds elements visually below all the elements that match the given predicates.
|
static Predicate |
QueryFactory.checkable()
Finds all input elements that can be used to check/uncheck an option.
|
static Predicate |
QueryFactory.checkable(java.lang.String text)
Finds input elements that can be used to check/uncheck an option and are labeled with a specific text.
|
static Predicate |
QueryFactory.choosable()
Finds all input elements that can be used to choose from multiple options.
|
static Predicate |
QueryFactory.choosable(java.lang.String text)
Finds input elements that can be used to choose from multiple options and are labeled with a specific text.
|
static Predicate |
QueryFactory.clickable()
Finds all clickable elements.
|
static Predicate |
QueryFactory.clickable(java.lang.String text)
Finds clickable elements that contain a specific text.
|
static Predicate |
QueryFactory.closeTo(DirectionOptions options,
HtmlElement element)
Finds elements visually close to the given
HtmlElement . |
static Predicate |
QueryFactory.closeTo(DirectionOptions options,
HtmlElements elements)
Finds elements visually close to the given
HtmlElements . |
static Predicate |
QueryFactory.closeTo(DirectionOptions options,
Predicate... predicates)
Finds elements visually close to the elements that match the given predicates.
|
static Predicate |
QueryFactory.closeTo(HtmlElement element)
Finds elements visually close to the given
HtmlElement , with a maximum distance of 300 pixels. |
static Predicate |
QueryFactory.closeTo(HtmlElements elements)
Finds elements visually close to the given
HtmlElements , with a maximum distance of 300 pixels. |
static Predicate |
QueryFactory.closeTo(int maxDistance,
HtmlElement element)
Finds elements visually close to the given
HtmlElement , with a maximum distance. |
static Predicate |
QueryFactory.closeTo(int maxDistance,
HtmlElements elements)
Finds elements visually close to the given
HtmlElements , with a maximum distance. |
static Predicate |
QueryFactory.closeTo(int maxDistance,
Predicate... predicates)
Finds elements visually close to the elements that match the given predicates, with a maximum distance.
|
static Predicate |
QueryFactory.closeTo(Predicate... predicates)
Finds elements visually close to the elements that match the given predicates, with a maximum distance of 300 pixels.
|
static Predicate |
QueryFactory.color(java.awt.Color color)
Finds elements that match the desired color.
|
static Predicate |
QueryFactory.color(java.awt.Color color,
double tolerance,
double dominance)
Finds elements that match the desired color.
|
static Predicate |
QueryFactory.color(ColorName colorName)
Finds elements that match the desired color.
|
static Predicate |
QueryFactory.color(ColorName colorName,
double tolerance,
double dominance)
Finds elements that match the desired color.
|
static Predicate |
QueryFactory.color(ColorName colorName,
Tolerance tolerance,
Dominance dominance)
Finds elements that match the desired color.
|
static Predicate |
QueryFactory.color(java.awt.Color color,
Tolerance tolerance,
Dominance dominance)
Finds elements that match the desired color.
|
static Predicate |
QueryFactory.contains(java.lang.String text)
Finds elements that contain a specific text or attribute value.
|
static Predicate |
QueryFactory.datepicker()
Finds input elements that can be used to select a date.
|
static Predicate |
QueryFactory.datepicker(java.lang.String text)
Finds input elements that can be used to select a date and are labeled with a specific text.
|
static Predicate |
QueryFactory.elements(HtmlElements elements)
Returns the given
HtmlElements as predicate result. |
static Predicate |
QueryFactory.frame(java.lang.String text)
Finds frames and iframe elements that are labeled/captioned with a specific text.
|
static Predicate |
QueryFactory.headline()
Finds all elements that are titles/headlines or have a bigger font size than average elements.
|
static Predicate |
QueryFactory.headline(java.lang.String text)
Finds title/headline elements that contain a specific text and have a bigger font size than average elements.
|
static Predicate |
QueryFactory.image()
Finds all image elements.
|
static Predicate |
QueryFactory.image(java.lang.String text)
Finds image elements that are labeled/captioned with a specific text.
|
static Predicate |
QueryFactory.leftOf(HtmlElement element)
Finds elements visually left of the given
HtmlElement . |
static Predicate |
QueryFactory.leftOf(HtmlElements elements)
Finds elements visually left of the given
HtmlElements . |
static Predicate |
QueryFactory.leftOf(Predicate... predicates)
Finds elements visually left of the elements that match the given predicates.
|
static Predicate |
QueryFactory.leftOfAll(HtmlElement element)
Finds elements visually left of all the elements that match the given
HtmlElement . |
static Predicate |
QueryFactory.leftOfAll(HtmlElements elements)
Finds elements visually left of all the elements that match the given
HtmlElements . |
static Predicate |
QueryFactory.leftOfAll(Predicate... predicates)
Finds elements visually left of all the elements that match the given predicates.
|
static Predicate |
QueryFactory.link()
Finds all link elements.
|
static Predicate |
QueryFactory.link(java.lang.String text)
Finds link elements that contain a specific text.
|
static Predicate |
QueryFactory.not(Predicate... predicates)
Defines a boolean "not" predicate.
|
static Predicate |
QueryFactory.or(Predicate... predicates)
Defines a boolean "or" predicate.
|
static Predicate |
QueryFactory.rightOf(HtmlElement element)
Finds elements visually right of the given
HtmlElement . |
static Predicate |
QueryFactory.rightOf(HtmlElements elements)
Finds elements visually right of the given
HtmlElements . |
static Predicate |
QueryFactory.rightOf(Predicate... predicates)
Finds elements visually right of the elements that match the given predicates.
|
static Predicate |
QueryFactory.rightOfAll(HtmlElement element)
Finds elements visually right of all the elements that match the given
HtmlElement . |
static Predicate |
QueryFactory.rightOfAll(HtmlElements elements)
Finds elements visually right of all the elements that match the given
HtmlElements . |
static Predicate |
QueryFactory.rightOfAll(Predicate... predicates)
Finds elements visually right of all the elements that match the given predicates.
|
static Predicate |
QueryFactory.select(java.lang.String selector)
Finds elements that match the given selector (CSS or jQuery).
|
static Predicate |
QueryFactory.submittable()
Finds input elements that can be used to submit a form.
|
static Predicate |
QueryFactory.submittable(java.lang.String text)
Finds input elements that can be used to submit a form and are labeled with a specific text.
|
static Predicate |
QueryFactory.text()
Finds all elements that contain text.
|
static Predicate |
QueryFactory.text(java.lang.String text)
Finds text elements that contain a specific text.
|
static Predicate |
QueryFactory.typable()
Finds all input elements that can be used to enter text.
|
static Predicate |
QueryFactory.typable(java.lang.String text)
Finds input elements that can be used to enter text and are labeled with a specific text.
|
static Predicate |
QueryFactory.xPath(java.lang.String selector)
Finds elements that match the given XPath selector.
|
Modifier and Type | Method and Description |
---|---|
static Predicate |
QueryFactory.above(Predicate... predicates)
Finds elements visually above the elements that match the given predicates.
|
static Predicate |
QueryFactory.aboveAll(Predicate... predicates)
Finds elements visually above all the elements that match the given predicates.
|
void |
Query.addPredicates(Predicate... predicates) |
static Predicate |
QueryFactory.and(Predicate... predicates)
Defines a boolean "and" predicate.
|
static Predicate |
QueryFactory.below(Predicate... predicates)
Finds elements visually above the elements that match the given predicates.
|
static Predicate |
QueryFactory.belowAll(Predicate... predicates)
Finds elements visually below all the elements that match the given predicates.
|
static Predicate |
QueryFactory.closeTo(DirectionOptions options,
Predicate... predicates)
Finds elements visually close to the elements that match the given predicates.
|
static Predicate |
QueryFactory.closeTo(int maxDistance,
Predicate... predicates)
Finds elements visually close to the elements that match the given predicates, with a maximum distance.
|
static Predicate |
QueryFactory.closeTo(Predicate... predicates)
Finds elements visually close to the elements that match the given predicates, with a maximum distance of 300 pixels.
|
static Predicate |
QueryFactory.leftOf(Predicate... predicates)
Finds elements visually left of the elements that match the given predicates.
|
static Predicate |
QueryFactory.leftOfAll(Predicate... predicates)
Finds elements visually left of all the elements that match the given predicates.
|
static Predicate |
QueryFactory.not(Predicate... predicates)
Defines a boolean "not" predicate.
|
static Predicate |
QueryFactory.or(Predicate... predicates)
Defines a boolean "or" predicate.
|
static Query |
QueryFactory.query(Browser browser,
Predicate... predicates)
Creates a new query to find elements in the specified browser and with the given predicates, used by calling
Browser.query(Predicate...) . |
static Predicate |
QueryFactory.rightOf(Predicate... predicates)
Finds elements visually right of the elements that match the given predicates.
|
static Predicate |
QueryFactory.rightOfAll(Predicate... predicates)
Finds elements visually right of all the elements that match the given predicates.
|
Constructor and Description |
---|
Query(Browser browser,
Predicate... predicates) |
Modifier and Type | Class and Description |
---|---|
class |
BooleanPredicate |
class |
CheckablePredicate |
class |
ChoosablePredicate |
class |
ClickablePredicate |
class |
ColorPredicate |
class |
ContainsPredicate |
class |
DatepickerPredicate |
class |
DirectionPredicate |
class |
ElementPredicate |
class |
FramePredicate |
class |
HeadlinePredicate |
class |
ImagePredicate |
class |
JQueryPredicate |
class |
LinkPredicate |
class |
RecursivePredicate |
class |
SelectPredicate |
class |
SubmittablePredicate |
class |
TextPredicate |
class |
TypablePredicate |
class |
XPathPredicate |
Modifier and Type | Method and Description |
---|---|
Predicate |
RecursivePredicate.addPredicates(Predicate... predicates) |
Predicate |
Predicate.and(Predicate... predicates) |
Predicate |
Predicate.not(Predicate... predicates) |
Predicate |
Predicate.or(Predicate... predicates) |
Modifier and Type | Method and Description |
---|---|
Predicate |
RecursivePredicate.addPredicates(Predicate... predicates) |
Predicate |
Predicate.and(Predicate... predicates) |
Predicate |
Predicate.not(Predicate... predicates) |
Predicate |
Predicate.or(Predicate... predicates) |
Constructor and Description |
---|
BooleanPredicate(BooleanType type,
Predicate... predicates) |
DirectionPredicate(DirectionOptions options,
Predicate... predicates) |
Predicates(Predicate predicate) |
Predicates(Predicate[] predicates) |
RecursivePredicate(Predicate... predicates) |