Chainable touch action builder for complex gesture sequences. Similar to Appium TouchAction for mobile automation.
public class TouchAction
driver.CreateTouchAction()
.Press(element)
.Wait(500)
.MoveTo(target)
.Release()
.Perform();
// Multi-finger gestures
var action1 = driver.CreateTouchAction()
.Press(100, 100)
.MoveTo(150, 150)
.Release();
var action2 = driver.CreateTouchAction()
.Press(200, 200)
.MoveTo(250, 250)
.Release();
MultiTouchAction.Perform(action1, action2);
kind:method, kind:property, kind:ctor. Press Esc to clear.TouchAction(AvaloniaDriver)Creates a new TouchAction.Cancel()Cancels all pending actions.DoubleTap(AvaloniaElement)Double tap at the specified element's center.LongPress(Control, Point, Int32)Long press at the specified position on a control.LongPress(AvaloniaElement, Int32)Long press at the specified element's center.LongPress(Double, Double, Int32)Long press at the specified position.MoveBy(Double, Double)Move by offset from current position.MoveTo(Control, Point)Move to the specified position on a control.MoveTo(AvaloniaElement, Double, Double)Move to the specified position on the element.MoveTo(AvaloniaElement)Move to the specified element's center.MoveTo(Double, Double)Move to the specified position.Perform()Performs all the actions in this chain.PerformAsync()Performs all the actions asynchronously.Press(Control, Point)Press down at the specified position on a control.Press(AvaloniaElement, Double, Double)Press down at the specified position on the element.Press(AvaloniaElement)Press down at the specified element's center.Press(Double, Double)Press down at the specified position.Release()Release the touch.Swipe(SwipeDirection, Double, Int32)Swipe from the current position in the specified direction.Swipe(Double, Double, Double, Double, Int32)Swipe from start to end position.Tap(Control, Point, Int32)Tap at the specified position on a control.Tap(AvaloniaElement, Int32)Tap at the specified element's center.Tap(Double, Double, Int32)Tap at the specified position.Wait(Int32)Wait for the specified duration.Wait(TimeSpan)Wait for the specified duration.