From 65e678572fe443aad30a7d5df63ceaded44eeefb Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Fri, 23 Feb 2024 09:29:40 -0800 Subject: [PATCH] chore: add return self --- appium/webdriver/common/multi_action.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appium/webdriver/common/multi_action.py b/appium/webdriver/common/multi_action.py index 918b8938..3ab826a1 100644 --- a/appium/webdriver/common/multi_action.py +++ b/appium/webdriver/common/multi_action.py @@ -45,7 +45,7 @@ def __init__(self, driver: 'WebDriver', element: Optional['WebElement'] = None) self._element = element self._touch_actions: List['TouchAction'] = [] - def add(self, *touch_actions: 'TouchAction') -> None: + def add(self, *touch_actions: 'TouchAction') -> 'MultiAction': """Add TouchAction objects to the MultiAction, to be performed later. Args: @@ -67,6 +67,8 @@ def add(self, *touch_actions: 'TouchAction') -> None: self._touch_actions.append(copy.copy(touch_action)) + return self + def perform(self) -> 'MultiAction': """Perform the actions stored in the object.