File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' )
Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments