Skip to content

Commit

Permalink
resorting context endpoints, belong with mobile spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed May 28, 2014
1 parent 1fcb06c commit 0bbb89a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ public JsonHttpCommandCodec() {
defineCommand(GET_CURRENT_WINDOW_HANDLE, get("/session/:sessionId/window_handle"));
defineCommand(GET_WINDOW_HANDLES, get("/session/:sessionId/window_handles"));

defineCommand(SWITCH_TO_CONTEXT, post("/session/:sessionId/context"));
defineCommand(GET_CURRENT_CONTEXT_HANDLE, get("/session/:sessionId/context"));
defineCommand(GET_CONTEXT_HANDLES, get("/session/:sessionId/contexts"));

defineCommand(GET_CURRENT_URL, get("/session/:sessionId/url"));
defineCommand(GET, post("/session/:sessionId/url"));
defineCommand(GO_BACK, post("/session/:sessionId/back"));
Expand Down Expand Up @@ -178,6 +174,9 @@ public JsonHttpCommandCodec() {
// https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
defineCommand(GET_NETWORK_CONNECTION, get("/session/:sessionId/network_connection"));
defineCommand(SET_NETWORK_CONNECTION, post("/session/:sessionId/network_connection"));
defineCommand(SWITCH_TO_CONTEXT, post("/session/:sessionId/context"));
defineCommand(GET_CURRENT_CONTEXT_HANDLE, get("/session/:sessionId/context"));
defineCommand(GET_CONTEXT_HANDLES, get("/session/:sessionId/contexts"));
}

@Override
Expand Down

0 comments on commit 0bbb89a

Please sign in to comment.