Methods
(static) css(value) → {Locator}
Creates a new Locator object with CSS selector type.
Parameters:
Name | Type | Description |
---|---|---|
value | string | The CSS selector value. |
- Source
Returns:
A new Locator object with CSS selector type.
- Type:
- Locator
(static) innerText(value, ignoreCaseopt, matchTypeopt, maxDepthopt) → {Locator}
Creates a new Locator object with the specified inner text value.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value | string | The inner text value to locate. | |
ignoreCase | boolean | | <optional> | Whether to ignore the case when matching the inner text value. |
matchType | string | | <optional> | The type of matching to perform (full or partial). |
maxDepth | number | | <optional> | The maximum depth to search for the inner text value. |
- Source
Returns:
A new Locator object with the specified inner text value.
- Type:
- Locator
(static) xpath(value) → {Locator}
Creates a new Locator object with the given XPath value.
Parameters:
Name | Type | Description |
---|---|---|
value | string | The XPath value. |
- Source
Returns:
A new Locator object.
- Type:
- Locator