webdriver: Merge pull request #82 from AutomatedTester/cleanup
authorAutomatedTester <david.burns@theautomatedtester.co.uk>
Thu, 23 Mar 2017 14:49:01 +0000
changeset 428127 c245d9ddabf13516a7bb577d7ebf0aaf6ccc0d18
parent 428126 a5610a216e05ad051f068f1976fe256bf18ce463
child 428128 dff765c4ab4c5d51eae70b68aa5ab7f4e896fd4c
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
webdriver: Merge pull request #82 from AutomatedTester/cleanup Remove end points no longer supported by Selenium Source-Repo: https://github.com/mozilla/webdriver-rust Source-Revision: 3adbb41823203c71779f5a19abf377aab93fb22d
testing/webdriver/src/httpapi.rs
--- a/testing/webdriver/src/httpapi.rs
+++ b/testing/webdriver/src/httpapi.rs
@@ -47,40 +47,28 @@ fn standard_routes<U:WebDriverExtensionR
                 (Post, "/session/{sessionId}/execute/async", Route::ExecuteAsyncScript),
                 (Get, "/session/{sessionId}/cookie", Route::GetCookies),
                 (Get, "/session/{sessionId}/cookie/{name}", Route::GetNamedCookie),
                 (Post, "/session/{sessionId}/cookie", Route::AddCookie),
                 (Delete, "/session/{sessionId}/cookie", Route::DeleteCookies),
                 (Delete, "/session/{sessionId}/cookie/{name}", Route::DeleteCookie),
                 (Get, "/session/{sessionId}/timeouts", Route::GetTimeouts),
                 (Post, "/session/{sessionId}/timeouts", Route::SetTimeouts),
-                //(Post, "/session/{sessionId}/actions", Route::Actions),
                 (Post, "/session/{sessionId}/element/{elementId}/click", Route::ElementClick),
                 (Post, "/session/{sessionId}/element/{elementId}/tap", Route::ElementTap),
                 (Post, "/session/{sessionId}/element/{elementId}/clear", Route::ElementClear),
                 (Post, "/session/{sessionId}/element/{elementId}/value", Route::ElementSendKeys),
                 (Post, "/session/{sessionId}/alert/dismiss", Route::DismissAlert),
                 (Post, "/session/{sessionId}/alert/accept", Route::AcceptAlert),
                 (Get, "/session/{sessionId}/alert/text", Route::GetAlertText),
                 (Post, "/session/{sessionId}/alert/text", Route::SendAlertText),
                 (Get, "/session/{sessionId}/screenshot", Route::TakeScreenshot),
                 (Get, "/session/{sessionId}/element/{elementId}/screenshot", Route::TakeElementScreenshot),
                 (Post, "/session/{sessionId}/actions", Route::PerformActions),
                 (Delete, "/session/{sessionId}/actions", Route::ReleaseActions),
-                // TODO Remove this when > v0.5 is released. There for compatibility reasons with existing
-                //      Webdriver implementations.
-                (Get, "/session/{sessionId}/alert_text", Route::GetAlertText),
-                (Post, "/session/{sessionId}/alert_text", Route::SendAlertText),
-                (Post, "/session/{sessionId}/accept_alert", Route::AcceptAlert),
-                (Post, "/session/{sessionId}/dismiss_alert", Route::DismissAlert),
-                (Get, "/session/{sessionId}/window_handle", Route::GetWindowHandle),
-                (Get, "/session/{sessionId}/window_handles", Route::GetWindowHandles),
-                (Delete, "/session/{sessionId}/window_handle", Route::CloseWindow),
-                (Post, "/session/{sessionId}/execute_async", Route::ExecuteAsyncScript),
-                (Post, "/session/{sessionId}/execute", Route::ExecuteScript),
                 (Get, "/status", Route::Status),]
 }
 
 #[derive(Clone, Copy)]
 pub enum Route<U:WebDriverExtensionRoute> {
     NewSession,
     DeleteSession,
     Get,