Skip to content
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
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