Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix omitted appium driver execute result #109

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 3 additions & 4 deletions testui/support/testui_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down