Property(String, Object?) Method

Definition

Assembly HeadlessTestingFramework.dll

Locates elements by Avalonia property value.

public static By Property(string propertyName, object? value)

Parameters

propertyName
String

The name of the Avalonia property.

value
Object

The expected value.

Returns

By
A By locator for property matching.

Examples

var element = driver.FindElement(By.Property("IsEnabled", true));