AttributeToBe(By, String, String) Method

Definition

Assembly HeadlessTestingFramework.dll

An expectation for checking that an element's attribute matches the expected value.

public static Func<AvaloniaDriver, bool> AttributeToBe(By locator, string attribute, string value)

Parameters

locator
By

The locator to find the element.

attribute
String

The attribute name.

value
String

The expected value.

Returns

Func<AvaloniaDriver, Boolean>
True when the attribute matches.