AttributeContains(By, String, String) Method

Definition

Assembly HeadlessTestingFramework.dll

An expectation for checking that an element's attribute contains the specified value.

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

Parameters

locator
By

The locator to find the element.

attribute
String

The attribute name.

value
String

The value to search for.

Returns

Func<AvaloniaDriver, Boolean>
True when the attribute contains the value.