File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
java/client/src/org/openqa/selenium/remote/http Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 42
42
import static org .openqa .selenium .remote .DriverCommand .FIND_ELEMENTS ;
43
43
import static org .openqa .selenium .remote .DriverCommand .FULLSCREEN_CURRENT_WINDOW ;
44
44
import static org .openqa .selenium .remote .DriverCommand .GET ;
45
- import static org .openqa .selenium .remote .DriverCommand .GET_ACTIVE_ELEMENT ;
46
45
import static org .openqa .selenium .remote .DriverCommand .GET_ALL_COOKIES ;
47
46
import static org .openqa .selenium .remote .DriverCommand .GET_ALL_SESSIONS ;
48
47
import static org .openqa .selenium .remote .DriverCommand .GET_APP_CACHE_STATUS ;
@@ -189,7 +188,6 @@ public AbstractHttpCommandCodec() {
189
188
190
189
defineCommand (FIND_ELEMENT , post ("/session/:sessionId/element" ));
191
190
defineCommand (FIND_ELEMENTS , post ("/session/:sessionId/elements" ));
192
- defineCommand (GET_ACTIVE_ELEMENT , post ("/session/:sessionId/element/active" ));
193
191
defineCommand (GET_ELEMENT_PROPERTY , get ("/session/:sessionId/element/:id/property/:name" ));
194
192
defineCommand (CLICK_ELEMENT , post ("/session/:sessionId/element/:id/click" ));
195
193
defineCommand (CLEAR_ELEMENT , post ("/session/:sessionId/element/:id/clear" ));
Original file line number Diff line number Diff line change 21
21
import static org .openqa .selenium .remote .DriverCommand .DISMISS_ALERT ;
22
22
import static org .openqa .selenium .remote .DriverCommand .EXECUTE_ASYNC_SCRIPT ;
23
23
import static org .openqa .selenium .remote .DriverCommand .EXECUTE_SCRIPT ;
24
+ import static org .openqa .selenium .remote .DriverCommand .GET_ACTIVE_ELEMENT ;
24
25
import static org .openqa .selenium .remote .DriverCommand .GET_ALERT_TEXT ;
25
26
import static org .openqa .selenium .remote .DriverCommand .GET_CURRENT_WINDOW_HANDLE ;
26
27
import static org .openqa .selenium .remote .DriverCommand .GET_CURRENT_WINDOW_POSITION ;
@@ -73,6 +74,8 @@ public JsonHttpCommandCodec() {
73
74
defineCommand (DISMISS_ALERT , post ("/session/:sessionId/dismiss_alert" ));
74
75
defineCommand (GET_ALERT_TEXT , get ("/session/:sessionId/alert_text" ));
75
76
defineCommand (SET_ALERT_VALUE , post ("/session/:sessionId/alert_text" ));
77
+
78
+ defineCommand (GET_ACTIVE_ELEMENT , post ("/session/:sessionId/element/active" ));
76
79
}
77
80
78
81
@ Override
Original file line number Diff line number Diff line change 25
25
import static org .openqa .selenium .remote .DriverCommand .FIND_CHILD_ELEMENTS ;
26
26
import static org .openqa .selenium .remote .DriverCommand .FIND_ELEMENT ;
27
27
import static org .openqa .selenium .remote .DriverCommand .FIND_ELEMENTS ;
28
+ import static org .openqa .selenium .remote .DriverCommand .GET_ACTIVE_ELEMENT ;
28
29
import static org .openqa .selenium .remote .DriverCommand .GET_ALERT_TEXT ;
29
30
import static org .openqa .selenium .remote .DriverCommand .GET_CURRENT_WINDOW_HANDLE ;
30
31
import static org .openqa .selenium .remote .DriverCommand .GET_CURRENT_WINDOW_POSITION ;
@@ -89,6 +90,8 @@ public W3CHttpCommandCodec() {
89
90
defineCommand (DISMISS_ALERT , post ("/session/:sessionId/alert/dismiss" ));
90
91
defineCommand (GET_ALERT_TEXT , get ("/session/:sessionId/alert/text" ));
91
92
defineCommand (SET_ALERT_VALUE , post ("/session/:sessionId/alert/text" ));
93
+
94
+ defineCommand (GET_ACTIVE_ELEMENT , get ("/session/:sessionId/element/active" ));
92
95
}
93
96
94
97
@ Override
You can’t perform that action at this time.
0 commit comments