Skip to content

Commit 7f55187

Browse files
authored
Revert some changes to fix broken codes (appium#462)
* Revert some changes * Fix typo
1 parent 00ba033 commit 7f55187

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

appium/webdriver/webdriver.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,3 +720,11 @@ def _addCommands(self):
720720
('POST', '/session/$sessionId/appium/device/open_notifications')
721721
self.command_executor._commands[Command.SET_IMMEDIATE_VALUE] = \
722722
('POST', '/session/$sessionId/appium/element/$id/value')
723+
724+
# TODO Move commands for element to webelement
725+
self.command_executor._commands[Command.REPLACE_KEYS] = \
726+
('POST', '/session/$sessionId/appium/element/$id/replace_value')
727+
self.command_executor._commands[Command.CLEAR] = \
728+
('POST', '/session/$sessionId/element/$id/clear')
729+
self.command_executor._commands[Command.LOCATION_IN_VIEW] = \
730+
('GET', '/session/$sessionId/element/$id/location_in_view')

appium/webdriver/webelement.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,3 @@ def clear(self):
369369
data = {'id': self.id}
370370
self._execute(Command.CLEAR, data)
371371
return self
372-
373-
def _addCommands(self):
374-
self.command_executor._commands[Command.REPLACE_KEYS] = \
375-
('POST', '/session/$sessionId/appium/element/$id/replace_value')
376-
self.command_executor._commands[Command.CLEAR] = \
377-
('POST', '/session/$sessionId/element/$id/clear')
378-
self.command_executor._commands[Command.LOCATION_IN_VIEW] = \
379-
('GET', '/session/$sessionId/element/$id/location_in_view')

0 commit comments

Comments
 (0)