Mushi

Scroll Selenium

Aug 23rd, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def scroll(self, locator, orientation_y, orientation_x =0):
  2.         element = self.find(locator)
  3.         action = TouchAction(self.driver)
  4.         action.press(element).move_to(x=orientation_x, y=orientation_y).release().perform()
Advertisement
Add Comment
Please, Sign In to add comment