poco.drivers.osx.osxui_poco module

class OSXPoco(selector=None, addr=('localhost', 15004), **options)[source]

Bases: StdPoco

scroll(direction='vertical', percent=1, duration=2.0)[source]

Scroll from the lower part to the upper part of the entire screen.

Parameters:
  • direction (str) – scrolling direction. “vertical” or “horizontal”

  • percent (float) – scrolling distance percentage of the entire screen height or width according to direction

  • duration (float) – time interval in which the action is performed