Skip to content

Commit 2f45ef9

Browse files
authored
chore: remove duplicated clean command (appium#809)
* remove clear * remove clear more
1 parent a4e4118 commit 2f45ef9

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

appium/webdriver/mobilecommand.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class MobileCommand:
3131
DEACTIVATE_IME_ENGINE = 'deactivateIMEEngine'
3232
GET_ACTIVE_IME_ENGINE = 'getActiveEngine'
3333

34-
CLEAR = 'clear'
3534
LOCATION_IN_VIEW = 'locationInView'
3635

3736
CONTEXTS = 'getContexts'

appium/webdriver/webdriver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ def _add_commands(self) -> None:
556556
'POST',
557557
'/session/$sessionId/appium/element/$id/replace_value',
558558
)
559-
commands[Command.CLEAR] = ('POST', '/session/$sessionId/element/$id/clear')
560559
commands[Command.LOCATION_IN_VIEW] = (
561560
'GET',
562561
'/session/$sessionId/element/$id/location_in_view',

appium/webdriver/webelement.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,6 @@ def find_elements(self, by: str = AppiumBy.ID, value: Union[str, Dict, None] = N
144144

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

147-
def clear(self) -> 'WebElement':
148-
"""Clears text.
149-
150-
Override for Appium
151-
152-
Returns:
153-
`appium.webdriver.webelement.WebElement`
154-
"""
155-
data = {'id': self.id}
156-
self._execute(Command.CLEAR, data)
157-
return self
158-
159147
def set_text(self, keys: str = '') -> 'WebElement':
160148
"""Sends text to the element.
161149
deprecated:: 2.8.1

0 commit comments

Comments
 (0)