FinderFilter

FinderFilter

This class provides filtering methods for Finder. This class is Mixined to "Finder" class

Constructor

new FinderFilter()

Source:

Methods

beChecked() → {Finder}

Source:
Returns:

return filtered Finder object which have been checked

Type
Finder

beSelected() → {Finder}

Source:
Returns:

return filtered Finder object which have been selected

Type
Finder

beVisible() → {Finder}

Source:
Returns:

return filtered Finder object which is visible (extracted by checkVisibility)

Type
Finder

closest() → {Finder}

Source:
Returns:

return Finder object for the closest node.

Type
Finder

first() → {Finder}

Source:
Returns:

return Finder for the first matched element. this is same to "indexOf(0)"

Type
Finder

haveAttribute() → {Finder}

Source:
Returns:

return filtered Finder object which have specified attrName. If value given, return filtered Finder object which have specified attribute-value

Type
Finder

haveContent() → {Finder}

Source:
Returns:

return filtered Finder object which have the specified text

Type
Finder

haveCssClass() → {Finder}

Source:
Returns:

return filtered Finder object which have specified CssClass

Type
Finder

haveCssProperty() → {Finder}

Source:
Returns:

return filtered Finder object which have specified CssProperty

Type
Finder

haveText() → {Finder}

Source:
Returns:

return filtered Finder object which have the specified text

Type
Finder

haveValue() → {Finder}

Source:
Returns:

return filtered Finder object which have the specified value

Type
Finder

indexOf() → {Finder}

Source:
Returns:

return filtered Finder object which is in given index in elements

Type
Finder

isClickable() → {Finder}

Source:
Returns:

return filtered Finder object which is clickable like a, button, input[type=button]

Type
Finder

notBeChecked() → {Finder}

Source:
Returns:

return filtered Finder object which do not have been checked

Type
Finder

notBeSelected() → {Finder}

Source:
Returns:

return filtered Finder object which do not have been selected

Type
Finder

notHaveAttribute() → {Finder}

Source:
Returns:

return filtered Finder object which do not have specified attrName. If value given, return filtered Finder object which do not have specified attribute-value.

Type
Finder

notHaveContent() → {Finder}

Source:
Returns:

return filtered Finder object which does not have the specified text

Type
Finder

notHaveCssClass() → {Finder}

Source:
Returns:

return filtered Finder object which do not have specified CssClass

Type
Finder

notHaveCssProperty() → {Finder}

Source:
Returns:

return filtered Finder object which do not have specified CssProperty

Type
Finder

notHaveText() → {Finder}

Source:
Returns:

return filtered Finder object which does not have the specified text

Type
Finder

notHaveValue() → {Finder}

Source:
Returns:

return filtered Finder object which does not have the specified value

Type
Finder

parent() → {Finder}

Source:
Returns:

return Finder object for the parent element.

Type
Finder

textIncludes() → {Finder}

Source:
Returns:

return filtered Finder object whose textContent includes given content

Type
Finder

textMatch() → {Finder}

Source:
Returns:

return filtered Finder object whose textContent matches given regexp

Type
Finder

valueIncludes() → {Finder}

Source:
Returns:

return filtered Finder object whose value includes given value

Type
Finder

valueMatch() → {Finder}

Source:
Returns:

return filtered Finder object whose value matches given regexp

Type
Finder

(static) beChecked() → {string}

Source:
Returns:

return function code to select elements which have given value as element.checked attribute.

Type
string

(static) beDisabled() → {string}

Source:
Returns:

return function code to select elements which have given value as element.disabled attribute.

Type
string

(static) beSelected() → {string}

Source:
Returns:

return function code to select elements which have given value as element.selected attribute.

Type
string

(static) beVisible() → {string}

Source:
Returns:

return function code to visible elements. It is extracted by the checkVisibility method.

Type
string

(static) closest() → {string}

Source:
Returns:

return function code to map closest node which matches given selector.

Type
string

(static) haveAttribute() → {string}

Source:
Returns:

return function code to select elements which have given attrName. If value given, select elements which have given value in element.getAttribute(attrName).

Type
string

(static) haveClass() → {string}

Source:
Returns:

return function code to select elements which have given value in element.classList attribute.

Type
string

(static) haveContent() → {string}

Source:
Returns:

return function code to select elements which have given content as element.textContent

Type
string

(static) haveStyle() → {string}

Source:
Returns:

return function code to select elements which have given value in window.getComputedStyle(element)

Type
string

(static) haveText() → {string}

Description:
  • Alias of haveContent

Source:
Returns:

return function code to select elements which have given content as element.textContent

Type
string

(static) haveValue() → {string}

Source:
Returns:

return function code to select elements which have given value as element.value

Type
string

(static) indexOf() → {string}

Source:
Returns:

return function code to select elements which is in given index in elements

Type
string

(static) isClickable() → {string}

Source:
Returns:

return css selector string to select clickable elements like a, button, input[type=button]

Type
string

(static) notHaveAttribute() → {string}

Source:
Returns:

return function code to select elements which do not have given attrName. If value given, select elements which do not have value in element.getAttribute(attrName)

Type
string

(static) notHaveClass() → {string}

Source:
Returns:

return function code to select elements which do not have given value in element.classList attribute.

Type
string

(static) notHaveContent() → {string}

Source:
Returns:

return function code to select elements which do not have given content as element.textContent

Type
string

(static) notHaveStyle() → {string}

Source:
Returns:

return function code to select elements which do not have given value in window.getComputedStyle(element)

Type
string

(static) notHaveText() → {string}

Description:
  • Alias of notHaveContent

Source:
Returns:

return function code to select elements which do not have given content as element.textContent

Type
string

(static) notHaveValue() → {string}

Source:
Returns:

return function code to select elements which do not have given value as element.value

Type
string

(static) parent() → {string}

Source:
Returns:

return function code to map parent node.

Type
string

(static) textIncludes() → {string}

Source:
Returns:

return function code to select elements which includes given content as element.textContent

Type
string

(static) textMatch() → {string}

Source:
Returns:

return function code to select elements which match given regexp as element.textContent

Type
string

(static) valueIncludes() → {string}

Source:
Returns:

return function code to select elements which includes given value as element.value

Type
string

(static) valueMatch() → {string}

Source:
Returns:

return function code to select elements which match given regexp as element.value

Type
string