Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestMethod]
- public void SwipeTest()
- {
- ITouchAction touchAction = new TouchAction(_driver);
- var element = _driver.FindElementById("IntegerA");
- Point point = element.Coordinates.LocationInDom;
- Size size = element.Size;
- touchAction
- .Press(point.X + 5, point.Y + 5)
- .Wait(200).MoveTo(point.X + size.Width - 5, point.Y + size.Height - 5)
- .Release()
- .Perform();
- }
Add Comment
Please, Sign In to add comment