File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -793,15 +793,3 @@ def _addCommands(self):
793793 ('POST' , '/session/$sessionId/location' )
794794 self .command_executor ._commands [Command .LOCATION_IN_VIEW ] = \
795795 ('GET' , '/session/$sessionId/element/$id/location_in_view' )
796-
797-
798- # monkeypatched method for WebElement
799- def set_value (self , value ):
800- """Set the value on this element in the application
801- """
802- data = {
803- 'elementId' : self .id ,
804- 'value' : [value ],
805- }
806- self ._execute (Command .SET_IMMEDIATE_VALUE , data )
807- return self
Original file line number Diff line number Diff line change @@ -112,3 +112,13 @@ def location_in_view(self):
112112 location = element.location_in_view
113113 """
114114 return self ._execute (Command .LOCATION_IN_VIEW )['value' ]
115+
116+ def set_value (self , value ):
117+ """Set the value on this element in the application
118+ """
119+ data = {
120+ 'elementId' : self .id ,
121+ 'value' : [value ],
122+ }
123+ self ._execute (Command .SET_IMMEDIATE_VALUE , data )
124+ return self
You can’t perform that action at this time.
0 commit comments