# -*- coding:utf-8 -*- from time import sleep from typing import Union, Tuple from .common import _location_in_viewport from .base import DrissionElement from .keys import _modifierBit, _keyDescriptionForString class ActionChains: """用于实现动作链的类""" def __init__(self, page):... def move_to(self, ele_or_loc: Union[DrissionElement, Tuple[int, int]], offset_x: int = ..., offset_y: int = ...) -> 'ActionChains': ... def move(self, offset_x: int = ..., offset_y: int = ...) -> 'ActionChains': ... def hold(self, on_ele=...) -> 'ActionChains': ... def click(self, on_ele=...) -> 'ActionChains': ... def r_click(self, on_ele=...) -> 'ActionChains': ... def release(self, on_ele=...) -> 'ActionChains': ... def scroll(self, delta_x: int = ..., delta_y: int = ..., on_ele=...) -> 'ActionChains': ... def up(self, pixel: int) -> 'ActionChains': ... def down(self, pixel: int) -> 'ActionChains': ... def left(self, pixel: int) -> 'ActionChains': ... def right(self, pixel: int) -> 'ActionChains': ... def key_down(self, key) -> 'ActionChains': ... def key_up(self, key) -> 'ActionChains': ... def wait(self, second: float) -> 'ActionChains': ... def _get_key_data(self, key, action: str) -> dict: ... def _location_to_client(page, lx: int, ly: int) -> tuple: ...