From 7ad0f0249620312f12bfae08e4a62e794aff7bdb Mon Sep 17 00:00:00 2001 From: Alvaro Laserna Date: Mon, 30 Sep 2024 16:02:29 +0300 Subject: [PATCH] fix omitted appium driver execute result --- README.md | 4 ++-- setup.py | 2 +- testui/support/testui_driver.py | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f9568c8..18c4b2a 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,14 @@ Installation is a simple by the helps of `pip`, Py-TestUI can be installed using this `pip` command. ```bash -pip3 install python-testui==1.2.2 +pip3 install python-testui==1.2.3 ``` Or if you prefer `requirements.txt`, you can add the following dependency to the file. ```txt -python-testui==1.2.2 +python-testui==1.2.3 ``` # Appium driver diff --git a/setup.py b/setup.py index b7963b2..23a12be 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="python-testui", - version="1.2.2", + version="1.2.3", description="Browser and Mobile automation framework", long_description=long_description, long_description_content_type="text/markdown", diff --git a/testui/support/testui_driver.py b/testui/support/testui_driver.py index 9363479..bed8f87 100644 --- a/testui/support/testui_driver.py +++ b/testui/support/testui_driver.py @@ -107,16 +107,15 @@ def e(self, locator_type, locator): """ return e(self, locator_type, locator) - def execute(self, driver_command, params=None): + def execute(self, driver_command, params: dict = None) -> dict: """ This method is meant for Appium Drivers only. Will execute a command in the current driver. :param driver_command: :param params: - :return: TestUIDriver + :return: dict of the result of executed script """ - self.driver.execute(driver_command, params) - return self + return self.driver.execute(driver_command, params) def remove_log_file(self, when_no_errors=True): """