Class By

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll

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

source WebLocator
index int

Returns

WebLocator

Attribute(string, string)

public static WebLocator Attribute(string name, string value)

Parameters

name string
value string

Returns

WebLocator

Css(string)

public static WebLocator Css(string selector)

Parameters

selector string

Returns

WebLocator

HasText(string, bool, bool)

public static WebLocator HasText(string value, bool exact = false, bool ignoreCase = false)

Parameters

value string
exact bool
ignoreCase bool

Returns

WebLocator

Label(string, bool)

public static WebLocator Label(string value, bool exact = true)

Parameters

value string
exact bool

Returns

WebLocator

Placeholder(string, bool)

public static WebLocator Placeholder(string value, bool exact = true)

Parameters

value string
exact bool

Returns

WebLocator

Role(WebRole, string?, bool)

public static WebLocator Role(WebRole role, string? name = null, bool exact = true)

Parameters

role WebRole
name string
exact bool

Returns

WebLocator

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

header string
exact bool
ignoreCase bool

Returns

WebLocator

TableCellAt(int)

Addresses a zero-based cell within the current table row.

public static WebLocator TableCellAt(int index)

Parameters

index int

Returns

WebLocator

TableCellNumber(int)

Addresses a one-based cell number within the current table row.

public static WebLocator TableCellNumber(int number)

Parameters

number int

Returns

WebLocator

TestId(string)

public static WebLocator TestId(string value)

Parameters

value string

Returns

WebLocator

Text(string, bool, bool)

public static WebLocator Text(string value, bool exact = false, bool ignoreCase = false)

Parameters

value string
exact bool
ignoreCase bool

Returns

WebLocator