ListWhereBuilder allows to select subsets of a PageElementList (subsets of its managed PageElements) by modifying the list's selector using XPath modification functions.
This is a raw XPath string used as root selector for all XPath modifications performed with ListWhereBuilder. It is appended to the selector of the PageElementList handled by ListWhereBuilder.
opts parameter passed to the constructor of ListWhereBuilder
Creates a copy of ListWhereBuilder's PageElementList which manages a subset of the original list's PageElements.
Opts passed to the constructor of PageElements created via ListWhereBuilder's PageNodeStore.
A function that returns instances of a PageElements managed by ListWhereBuilder's PageElementList from the ListWhereBuilder's PageNodeStore.
Returns all PageElements manages by ListWhereBuilder's PageElementList.
Stores the root selector for all XPath modifications performed with ListWhereBuilder.
An instance of PageNodeStore used by PageNodes which are returned by ListWhereBuilder.
An instance of XPathBuilder used by ListWhereBuilder to perform XPath modifications.
Appends a plain XPath string to the currently constructed XPath expression.
the appended plain XPath string
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute whose name equals the passed name.
Optionally, if also passing a value, the currently constructed XPath expression is further restricted to elements which have an HTML attribute whose name equals the passed name and whose value equals the passed value.
the name of the HTML attribute used to restrict the currently constructed XPath expression
a value that needs to equal the value of the HTML attribute with the passed name
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute whose name contains the passed name.
Optionally, if also passing a value, the currently constructed XPath expression is further restricted to elements which have an HTML attribute whose name equals the passed name and whose value contains the passed value.
the name of the HTML attribute used to restrict the currently constructed XPath expression
a value that needs to be contained by the value of the HTML attribute with the passed name
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'checked'.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Appends a childSelector to the currently constructed XPath expression in order to select a child element.
After executing .child
, the selected child element becomes the new "target" for all future XPath modification
functions (eg. .id
, .class
) until the currently constructed XPath expression is reset.
a selector appended to the currently constructed XPath expression to select a child element
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'class'.
Optionally, if also passing a class name, the currently constructed XPath expression is further restricted to elements which have an HTML 'class' attribute with a value that equals the passed class name.
a class name which must equal the value of the HTML 'class' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'class' with a value that contains the passed class name.
a class name which must be contained by the value of the HTML 'class' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Adds a plain XPath constraint (eg. '[./span]') to the currently constructed XPath expression.
Optionally, a builderFunc can be used to apply XPath modification functions to the constraint selector instead of
the "outer" selector. To do so, builderFunc is passed an XPathBuilder instance configured to use
constraintSelector
as a new root for the currently constructed XPath expression.
a plain XPath constraint appended to the currently constructed XPath expression
can be used to apply XPath modification functions to constraintSelector
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'disabled'.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Retrieves all PageElements that refer to HTML elements in the DOM which are selected by the currently constructed XPath expression.
an array of instances of PageElement
Retrieves a PageElement that refers to the HTML element in the DOM at the passed index (starting at 0) which is selected by the currently constructed XPath expression.
the index of occurrence of an element in the DOM whose selector is defined by the currently constructed XPath expression (starting at 0)
an instance of PageElement
Retrieves a PageElement that refers to the first HTML element in the DOM which is selected by the currently constructed XPath expression.
an instance of PageElement
Retrieves a clone of ListWhereBuilder's PageElementList that manages a subset of the original list's PageElements selected by the currently constructed XPath expression.
an instance of PageElementList that manages a subset of the original list's PageElements
Restricts the currently constructed XPath expression to elements which have at least one child element that matches the passed childSelector.
Optionally, a builderFunc can be used to apply XPath modification functions to the child selector instead of
the "outer" selector. To do so, builderFunc is passed an XPathBuilder instance configured to use the
childSelector
as a new root for the currently constructed XPath expression.
a plain XPath constraint appended to the currently constructed XPath expression
can be used to apply XPath modification functions to childSelector
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'id'.
Optionally, if also passing an id, the currently constructed XPath expression is further restricted to elements which have an HTML 'id' attribute with a value that equals the passed id.
an id which must equal the value of the HTML 'id' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'id' with a value that contains the passed id.
an id which must be contained by the value of the HTML 'id' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have the passed index (starting at 1).
The passed index defines an element's index of occurrence across all "levels/depths" of the DOM.
an element's index of occurrence on a all "levels/depths" of the DOM - STARTS AT 1
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have the passed level index (starting at 1).
The passed level index defines an element's index of occurrence on a single "level" of the DOM. Eg.: If index === 3, there must be 3 siblings on the same DOM level that match the current selector and the third one will be selected.
an element's index of occurrence on a single "level" of the DOM - STARTS AT 1
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'name'.
Optionally, if also passing a name, the currently constructed XPath expression is further restricted to elements which have an HTML 'name' attribute with a value that equals the passed name.
a name which must equal the value of the HTML 'name' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'name' with a value that contains the passed name.
a name which must be contained by the value of the HTML 'name' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute whose name equals the passed name.
Optionally, if also passing a value, the currently constructed XPath expression is restricted to elements which have an HTML attribute whose name equals the passed name and whose value does not equal the passed value.
the name of the HTML attribute used to restrict the currently constructed XPath expression
a value that must not equal the value of the HTML attribute with the passed name
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute whose name does not contain the passed name.
Optionally, if also passing a value, the currently constructed XPath expression is restricted to elements which have an HTML attribute whose name equals the passed name and whose value does not contain the passed value.
the name of the HTML attribute used to restrict the currently constructed XPath expression
a value that must not be contained by the value of the HTML attribute with the passed name
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'checked'.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'class'.
Optionally, if also passing a class name, the currently constructed XPath expression is restricted to elements which have an HTML 'class' attribute with a value that does not equal the passed class name.
a class name which must not equal the value of the HTML 'class' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'class' with a value that does not contain the passed class name.
a class name which must not be contained by the value of the HTML 'class' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'disabled'.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'id'.
Optionally, if also passing an id, the currently constructed XPath expression is restricted to elements which have an HTML 'id' attribute with a value that does not equal the passed id.
an id which must not equal the value of the HTML 'id' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'id' with a value that does not contain the passed id.
an id which must not be contained by the value of the HTML 'id' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'name'.
Optionally, if also passing a name, the currently constructed XPath expression is restricted to elements which have an HTML 'name' attribute with a value that does not equal the passed name.
a name which must not equal the value of the HTML 'name' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'name' with a value that does not contain the passed name.
a name which must not be contained by the value of the HTML 'name' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'selected'.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements whose text does not equal the passed text.
a text which must not equal the text of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements whose text does not contain the passed text.
a text which must not be contained by the text of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which do not have an HTML attribute called 'type'.
Optionally, if also passing a type, the currently constructed XPath expression is restricted to elements which have an HTML 'type' attribute with a value that does not equal the passed type.
a type which must not equal the value of the HTML 'type' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'type' with a value does not contain the passed type.
a type which must not be contained by the value of the HTML 'type' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Resets the currently processed XPath expression to the root XPath selector passed to ListWhereBuilder's constructor.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'selected'.
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements whose text equals the passed text.
a text which must equal the text of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements whose text contains the passed text.
a text which must be contained by the text of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'type'.
Optionally, if also passing a type, the currently constructed XPath expression is further restricted to elements which have an HTML 'type' attribute with a value that equals the passed type.
a type which must equal the value of the HTML 'type' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Restricts the currently constructed XPath expression to elements which have an HTML attribute called 'type' with a value that contains the passed type.
a type which must be contained by the value of the HTML 'type' attribute of elements selected by the currently constructed XPath expression
the singleton instance of ListWhereBuilder storing the currently constructed XPath expression
Generated using TypeDoc
ListWhereBuilder allows to select subsets of a PageElementList (subsets of its managed PageElements) by modifying the list's selector using XPath modification functions.
Store type of the instance of PageNodeStore that is used by PageNodes returned by ListWhereBuilder
PageElementType type of instances of PageElements returned by ListWhereBuilder's retrieval functions (getXXX)
PageElementOpts type of opts passed to the constructors of PageElements returned by ListWhereBuilder's retrieval functions
ListType type of the PageElementList on which ListWhereBuilder operates