Class By
Factory for semantic web locators.
public static class By
- Inheritance
-
By
- Inherited Members
Methods
At(WebLocator, int)
public static WebLocator At(WebLocator source, int index)
Parameters
sourceWebLocatorindexint
Returns
Attribute(string, string)
public static WebLocator Attribute(string name, string value)
Parameters
Returns
Css(string)
public static WebLocator Css(string selector)
Parameters
selectorstring
Returns
HasText(string, bool, bool)
public static WebLocator HasText(string value, bool exact = false, bool ignoreCase = false)
Parameters
Returns
Label(string, bool)
public static WebLocator Label(string value, bool exact = true)
Parameters
Returns
Placeholder(string, bool)
public static WebLocator Placeholder(string value, bool exact = true)
Parameters
Returns
Role(WebRole, string?, bool)
public static WebLocator Role(WebRole role, string? name = null, bool exact = true)
Parameters
Returns
TableCell(string, bool, bool)
Addresses a cell by the text of its conventional table header.
public static WebLocator TableCell(string header, bool exact = true, bool ignoreCase = false)
Parameters
Returns
TableCellAt(int)
Addresses a zero-based cell within the current table row.
public static WebLocator TableCellAt(int index)
Parameters
indexint
Returns
TableCellNumber(int)
Addresses a one-based cell number within the current table row.
public static WebLocator TableCellNumber(int number)
Parameters
numberint
Returns
TestId(string)
public static WebLocator TestId(string value)
Parameters
valuestring
Returns
Text(string, bool, bool)
public static WebLocator Text(string value, bool exact = false, bool ignoreCase = false)