File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -793,15 +793,3 @@ def _addCommands(self):
793
793
('POST' , '/session/$sessionId/location' )
794
794
self .command_executor ._commands [Command .LOCATION_IN_VIEW ] = \
795
795
('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):
112
112
location = element.location_in_view
113
113
"""
114
114
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