XPath

XPath

Finds an element with help of XPath selector

Constructor

new XPath()

Source:

Methods

(static) buttonContains(text)

Source:

Selector to find a button containing a provided text

Parameters:
Name Type Description
text

(static) classContains(className, text)

Source:

Selector to find an element containing a provided CSS class name and having a certain text.

Parameters:
Name Type Description
className
text

(static) divContains(text)

Source:

Selector to find a div element containing a provided text.

Parameters:
Name Type Description
text

(static) labelContains(text)

Source:

Selector to find a label element containing a provided text.

Parameters:
Name Type Description
text

(static) linkContains(text)

Source:

Selector to find a link element containing a provided text.

Parameters:
Name Type Description
text

(static) paragraphContains(text)

Source:

Selector to find p element containing a provided text.

Parameters:
Name Type Description
text

(static) spanContains(text)

Source:

Selector to find span element containing a provided text.

Parameters:
Name Type Description
text

(static) strongContains(text)

Source:

Selector to find strong element containing a provided text.

Parameters:
Name Type Description
text

(static) withButtonContains(selector, text)

Source:

Selector to find a button containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text

(static) withClassContains(selector, className, text)

Source:

Selector to find an element containing a provided CSS class name and having a certain text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
className
text

(static) withDivContains(selector, text)

Source:

Selector to find a div element containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text

(static) withLabelContains(selector, text)

Source:

Selector to find a label element containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text

(static) withLinkContains(selector, text)

Source:

Selector to find a link element containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text

(static) withParagraphContains(selector, text)

Source:

Selector to find a paragraph element containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text

(static) withSpanContains(selector, text)

Source:

Selector to find a span element containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text

(static) withStrongContains(selector, text)

Source:

Selector to find a strong element containing a provided text inside already found element by an additional selector.

Parameters:
Name Type Description
selector
text