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

chore: remove duplicated clean command #809

Merged
merged 5 commits into from
Jun 8, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion appium/webdriver/mobilecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class MobileCommand:
DEACTIVATE_IME_ENGINE = 'deactivateIMEEngine'
GET_ACTIVE_IME_ENGINE = 'getActiveEngine'

CLEAR = 'clear'
LOCATION_IN_VIEW = 'locationInView'

CONTEXTS = 'getContexts'
Expand Down
1 change: 0 additions & 1 deletion appium/webdriver/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ def _add_commands(self) -> None:
'POST',
'/session/$sessionId/appium/element/$id/replace_value',
)
commands[Command.CLEAR] = ('POST', '/session/$sessionId/element/$id/clear')
commands[Command.LOCATION_IN_VIEW] = (
'GET',
'/session/$sessionId/element/$id/location_in_view',
Expand Down
12 changes: 0 additions & 12 deletions appium/webdriver/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,6 @@ def find_elements(self, by: str = AppiumBy.ID, value: Union[str, Dict, None] = N

return self._execute(RemoteCommand.FIND_CHILD_ELEMENTS, {"using": by, "value": value})['value']

def clear(self) -> 'WebElement':
"""Clears text.

Override for Appium

Returns:
`appium.webdriver.webelement.WebElement`
"""
data = {'id': self.id}
self._execute(Command.CLEAR, data)
return self

def set_text(self, keys: str = '') -> 'WebElement':
"""Sends text to the element.
deprecated:: 2.8.1
Expand Down