Guest User

Untitled

a guest
Nov 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. [TestMethod]
  2. public void SwipeTest()
  3. {
  4. ITouchAction touchAction = new TouchAction(_driver);
  5. var element = _driver.FindElementById("IntegerA");
  6. Point point = element.Coordinates.LocationInDom;
  7. Size size = element.Size;
  8.  
  9. touchAction
  10. .Press(point.X + 5, point.Y + 5)
  11. .Wait(200).MoveTo(point.X + size.Width - 5, point.Y + size.Height - 5)
  12. .Release()
  13. .Perform();
  14. }
Add Comment
Please, Sign In to add comment