-
Home
-
API
-
Avalonia.HeadlessTestingFramework.Appium
-
By
-
Methods
-
Property(String, Object?)
Property(String, Object?) Method
Definition
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));