there is not much out there but I have found this
I just need a simple tap like
TouchAction touchAction9 = new TouchAction(_IOSdriver);
touchAction9.Tap(23, 315).Perform();
The newer one should be similiar to the below
var inputDevice = new OpenQA.Selenium.Interactions.PointerInputDevice(PointerKind.Touch);
var actionSequence = new ActionSequence(inputDevice, 0);
actionSequence.AddAction(inputDevice.CreatePointerMove.(23, 315));
actionSequence.AddAction(inputDevice.CreatePointerDown((MouseButton)PointerButton.TouchContact));
actionSequence.AddAction(inputDevice.CreatePause(TimeSpan.FromSeconds(1)));
I see issues at CreatePointerMove andthe . after that not sure what it shoudl look like.
Now I am trying //Actions actions = new Actions(_IOSdriver);
//actions.MoveToLocation(23, 315);
//actions.Click();
//actions.Release();
//actions.Perform();
It still does not seem to work
I see an example: My problem is with the elementToTouch I dont have that only the xy and not adding it causes it to not want to run. Anyone know of a way to make that piece better?
using static OpenQA.Selenium.Interactions.PointerInputDevice;
using PointerInputDevice = OpenQA.Selenium.Appium.Interactions.PointerInputDevice;
var touch = new PointerInputDevice(PointerKind.Touch, “finger”);
// Create a sequence for tap
var sequence = new ActionSequence(touch);
PointerEventProperties pointerEventProperties = new PointerEventProperties();
pointerEventProperties.Pressure = 1;
var move = touch.CreatePointerMove(elementToTouch, elementToTouch.Location.X, elementToTouch.Location.Y,TimeSpan.FromSeconds(1));
var action = touch.CreatePointerDown(MouseButton.Touch, pointerEventProperties);
var pouse = touch.CreatePause(TimeSpan.FromSeconds(1));
var action2 = touch.CreatePointerUp(MouseButton.Touch);
sequence.AddAction(move);
sequence.AddAction(action);
sequence.AddAction(pouse);
sequence.AddAction(action2);
var actions_seq = new List
{
sequence
};
_driver.PerformActions(actions_seq);