Represents a UI element with Appium-like API methods. Wraps an Avalonia Control to provide familiar WebDriver/Appium interactions.
public class AvaloniaElement
kind:method, kind:property, kind:ctor. Press Esc to clear.AbsoluteCenterGets the absolute center point in screen coordinates.CenterGets the center point of the element.ChildrenGets all direct child elements.ControlGets the underlying Avalonia control.DisplayedGets a value indicating whether the element is displayed (visible).EnabledGets a value indicating whether the element is enabled.FocusedGets a value indicating whether the element is focused.FullTagNameGets the element's full type name.IdGets the element's unique identifier.LocationGets the element's location relative to its parent.ParentGets the parent element.RectGets the element's bounding rectangle.SelectedGets a value indicating whether the element is selected.SizeGets the element's size.TagNameGets the element's tag name (type name).TextGets the element's text content.Clear()Clears the text content of the element. Uses SetCurrentValue to preserve bindings.Click()Clicks on the element at its center.DoubleClick()Double-clicks on the element.DoubleTap()Double-taps on the element (touch).DragTo(AvaloniaElement)Drags this element to the target element.FindElement(By)Finds a child element matching the locator.FindElements(By)Finds all child elements matching the locator.Focus()Sets focus to the element.GetAttribute(String)Gets the value of an attribute/property.GetClasses()Gets all CSS/style classes on this element.GetProperty<T>(String)Gets the value of an Avalonia property.HasClass(String)Checks if the element has the specified CSS class.Hover()Hovers over the element.LongPress(Int32)Long-presses on the element (touch).Pinch(Double)Performs a pinch gesture on this element.PressKey(Key, KeyModifiers)Presses a key while focused on this element.RightClick()Right-clicks on the element.SaveScreenshot(String)Saves a screenshot of this element to a file.Screenshot()Takes a screenshot of this element.Scroll(Double, Double)Performs a scroll gesture on this element.ScrollIntoView()Scrolls the element into view.SendKeys(String)Sends text input to the element. Uses keyboard simulator to preserve bindings and trigger proper events.SetProperty(String, Object?)Sets an Avalonia property value using SetCurrentValue to preserve bindings.Submit()Submits a form. In Avalonia context, this simulates pressing Enter or clicking a submit button within the form context. This is the standard Selenium WebElement.Submit() method.Swipe(SwipeDirection, Double)Swipes on this element in the specified direction.Tap()Taps on the element (touch).ToString()Returns a string representation of this element.TryFindElement(By)Tries to find a child element, returning null if not found.WaitUntil(Func<AvaloniaElement, Boolean>, Nullable<TimeSpan>, Nullable<TimeSpan>)Waits until a condition is met.WaitUntilClickable(Nullable<TimeSpan>)Waits until the element is clickable (visible and enabled).WaitUntilEnabled(Nullable<TimeSpan>)Waits until the element is enabled.WaitUntilVisible(Nullable<TimeSpan>)Waits until the element is visible.