Skip to content

Commit 0bbb89a

Browse files
committed
resorting context endpoints, belong with mobile spec
1 parent 1fcb06c commit 0bbb89a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/client/src/org/openqa/selenium/remote/http/JsonHttpCommandCodec.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ public JsonHttpCommandCodec() {
7070
defineCommand(GET_CURRENT_WINDOW_HANDLE, get("/session/:sessionId/window_handle"));
7171
defineCommand(GET_WINDOW_HANDLES, get("/session/:sessionId/window_handles"));
7272

73-
defineCommand(SWITCH_TO_CONTEXT, post("/session/:sessionId/context"));
74-
defineCommand(GET_CURRENT_CONTEXT_HANDLE, get("/session/:sessionId/context"));
75-
defineCommand(GET_CONTEXT_HANDLES, get("/session/:sessionId/contexts"));
76-
7773
defineCommand(GET_CURRENT_URL, get("/session/:sessionId/url"));
7874
defineCommand(GET, post("/session/:sessionId/url"));
7975
defineCommand(GO_BACK, post("/session/:sessionId/back"));
@@ -178,6 +174,9 @@ public JsonHttpCommandCodec() {
178174
// https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
179175
defineCommand(GET_NETWORK_CONNECTION, get("/session/:sessionId/network_connection"));
180176
defineCommand(SET_NETWORK_CONNECTION, post("/session/:sessionId/network_connection"));
177+
defineCommand(SWITCH_TO_CONTEXT, post("/session/:sessionId/context"));
178+
defineCommand(GET_CURRENT_CONTEXT_HANDLE, get("/session/:sessionId/context"));
179+
defineCommand(GET_CONTEXT_HANDLES, get("/session/:sessionId/contexts"));
181180
}
182181

183182
@Override

0 commit comments

Comments
 (0)