Type() Method

Definition

Assembly HeadlessTestingFramework.dll

Locates elements by their type.

public static By Type<T>()

Type parameters

T
The type of element to find.

Returns

By
A By locator for type matching.

Examples

var element = driver.FindElement(By.Type<Button>());