module Wiredriver
  module Common
    COMMANDS = {
      "get_log_types"              => ["GET",    "/session/:sessionId/log/types"],
      "get_log"                    => ["POST",   "/session/:sessionId/log"],
      "set_geolocation"            => ["POST",   "/session/:sessionId/location"],
      "get_geolocation"            => ["GET",    "/session/:sessionId/location"],
      "flick"                      => ["POST",   "/session/:sessionId/touch/flick"],
      "long_click"                 => ["POST",   "/session/:sessionId/touch/longclick"],
      "double_click_touch"         => ["POST",   "/session/:sessionId/touch/doubleclick"],
      "scroll"                     => ["POST",   "/session/:sessionId/touch/scroll"],
      "touch_move"                 => ["POST",   "/session/:sessionId/touch/move"],
      "touch_up"                   => ["POST",   "/session/:sessionId/touch/up"],
      "touch_down"                 => ["POST",   "/session/:sessionId/touch/down"],
      "touch_click"                => ["POST",   "/session/:sessionId/touch/click"],
      "get_source"                 => ["GET",    "/session/:sessionId/source"],
      "delete_cookie"              => ["DELETE", "/session/:sessionId/cookie/:name"],
      "delete_all_cookies"         => ["DELETE", "/session/:sessionId/cookie"],
      "set_cookie"                 => ["POST",   "/session/:sessionId/cookie"],
      "get_cookie"                 => ["GET",    "/session/:sessionId/cookie"],
      "maximize_window"            => ["POST",   "/session/:sessionId/window/:windowHandle/maximize"],
      "get_window_position"        => ["GET",    "/session/:sessionId/window/:windowHandle/position"],
      "set_window_position"        => ["POST",   "/session/:sessionId/window/:windowHandle/position"],
      "get_window_size"            => ["GET",    "/session/:sessionId/window/:windowHandle/size"],
      "set_window_size"            => ["POST",   "/session/:sessionId/window/:windowHandle/size"],
      "close_window"               => ["DELETE", "/session/:sessionId/window"],
      "open_window"                => ["POST",   "/session/:sessionId/window"],
      "focus_to_frame"             => ["POST",   "/session/:sessionId/frame"],
      "activate_ime"               => ["POST",   "/session/:sessionId/ime/activate"],
      "deactivate_ime"             => ["POST",   "/session/:sessionId/ime/deactivate"],
      "is_ime_activated"           => ["GET",    "/session/:sessionId/ime/activated"],
      "get_window"                 => ["GET",    "/session/:sessionId/window_handle"],
      "set_implicit_wait"          => ["POST",   "/session/:sessionId/timeouts/implicit_wait"],
      "set_timeouts"               => ["POST",   "/session/:sessionId/timeouts"],
      "quit_session"               => ["DELETE", "/session/:sessionId"],
      "get_capabilities"           => ["GET",    "/session/:sessionId"],
      "get_running_sessions"       => ["GET",    "/sessions"],
      "start_session"              => ["POST",   "/session"],
      "get_status"                 => ["GET",    "/status"],
      "get_all_windows"            => ["GET",    "/session/:sessionId/window_handles"],
      "get_current_url"            => ["GET",    "/session/:sessionId/url"],
      "open_url"                   => ["POST",   "/session/:sessionId/url"],
      "go_forward"                 => ["POST",   "/session/:sessionId/forward"],
      "go_back"                    => ["POST",   "/session/:sessionId/back"],
      "refresh_page"               => ["POST",   "/session/:sessionId/refresh"],
      "execute_js"                 => ["POST",   "/session/:sessionId/execute"],
      "take_screenshot"            => ["GET",    "/session/:sessionId/screenshot"],
      "get_title"                  => ["GET",    "/session/:sessionId/title"],
      "find_element"               => ["POST",   "/session/:sessionId/element"],
      "find_elements"              => ["POST",   "/session/:sessionId/elements"],
      "get_active_element"         => ["POST",   "/session/:sessionId/element/active"],
      "describe_element"           => ["GET",    "/session/:sessionId/element/:id"],
      "find_element_from"          => ["POST",   "/session/:sessionId/element/:id/element"],
      "find_elements_from"         => ["POST",   "/session/:sessionId/element/:id/elements"],
      "click_element"              => ["POST",   "/session/:sessionId/element/:id/click"],
      "submit"                     => ["POST",   "/session/:sessionId/element/:id/submit"],
      "get_text"                   => ["GET",    "/session/:sessionId/element/:id/text"],
      "active_send_keys"           => ["POST",   "/session/:sessionId/element/:id/value"],
      "element_send_keys"          => ["POST",   "/session/:sessionId/keys"],
      "get_name"                   => ["GET",    "/session/:sessionId/element/:id/name"],
      "clear_element"              => ["POST",   "/session/:sessionId/element/:id/clear"],
      "is_selected"                => ["GET",    "/session/:sessionId/element/:id/selected"],
      "is_enabled"                 => ["GET",    "/session/:sessionId/element/:id/enabled"],
      "get_attribute"              => ["GET",    "/session/:sessionId/element/:id/attribute/:name"],
      "elements_equal"             => ["GET",    "/session/:sessionId/element/:id/equals/:other"],
      "is_displayed"               => ["GET",    "/session/:sessionId/element/:id/displayed"],
      "get_location"               => ["GET",    "/session/:sessionId/element/:id/location"],
      "get_size"                   => ["GET",    "/session/:sessionId/element/:id/size"],
      "get_css_property"           => ["GET",    "/session/:sessionId/element/:id/css/:propertyName"],
      "get_orientation"            => ["GET",    "/session/:sessionId/orientation"],
      "set_orientation"            => ["POST",   "/session/:sessionId/orientation"],
      "get_alert_text"             => ["GET",    "/session/:sessionId/alert_text"],
      "accept_alert"               => ["POST",   "/session/:sessionId/accept_alert"],
      "dismiss_alert"              => ["POST",   "/session/:sessionId/dismiss_alert"],
      "mouse_moveto"               => ["POST",   "/session/:sessionId/moveto"],
      "click"                      => ["POST",   "/session/:sessionId/click"],
      "button_down"                => ["POST",   "/session/:sessionId/buttondown"],
      "button_up"                  => ["POST",   "/session/:sessionId/buttonup"],
      "double_click"               => ["POST",   "/session/:sessionId/doubleclick"],
      "appcache_status"            => ["GET",    "/session/:sessionId/application_cache/status"],
      "session_storage_size"       => ["GET",    "/session/:sessionId/session_storage/size"],
      "delete_session_storage_key" => ["DELETE", "/session/:sessionId/session_storage/key/:key"],
      "set_local_storage"          => ["POST",   "/session/:sessionId/local_storage"],
      "get_local_storage"          => ["GET",    "/session/:sessionId/local_storage"],
      "alert_send_keys"            => ["POST",   "/session/:sessionId/alert_text"],
      "is_element_in_view"         => ["GET",    "/session/:sessionId/element/:id/location_in_view"],
      "ime_active_engines"         => ["GET",    "/session/:sessionId/ime/active_engine"],
      "ime_available_engines"      => ["GET",    "/session/:sessionId/ime/available_engines"],
      "execute_async_js"           => ["POST",   "/session/:sessionId/execute_async"],
      "set_async_js_timeout"       => ["POST",   "/session/:sessionId/timeouts/async_script"],
      "delete_local_storage"       => ["DELETE", "/session/:sessionId/local_storage"],
      "get_local_storage_key"      => ["GET",    "/session/:sessionId/local_storage/key/:key"],
      "delete_local_storage_key"   => ["DELETE", "/session/:sessionId/local_storage/key/:key"],
      "get_local_storage_size"     => ["GET",    "/session/:sessionId/local_storage/size"],
      "get_session_storage"        => ["GET",    "/session/:sessionId/session_storage"],
      "set_session_storage"        => ["POST",   "/session/:sessionId/session_storage"],
      "delete_session_storage"     => ["DELETE", "/session/:sessionId/session_storage"],
      "get_session_storage_key"    => ["GET",    "/session/:sessionId/session_storage/key/:key"],
      "upload_file"                => ["POST",   "/session/:sessionId/file"],
      "get_context"                => ["GET",    "/session/:sessionId/context"],
      "set_context"                => ["POST",   "/session/:sessionId/context"],
      "get_contexts"               => ["GET",    "/session/:sessionId/contexts"],
      "get_page_index"             => ["GET",    "/session/:sessionId/element/:id/pageIndex"],
      "get_network_type"           => ["GET",    "/session/:sessionId/network_connection"],
      "set_network_type"           => ["POST",   "/session/:sessionId/network_connection"],
      "perform_touch_seq"          => ["POST",   "/session/:sessionId/touch/perform"],
      "perform_multi_touch_seq"    => ["POST",   "/session/:sessionId/touch/multi/perform"],
      "callback_async_js"          => ["POST",   "/session/:sessionId/receive_async_response"],
      "shake_device"               => ["POST",   "/session/:sessionId/appium/device/shake"],
      "lock_device"                => ["POST",   "/session/:sessionId/appium/device/lock"],
      "unlock_device"              => ["POST",   "/session/:sessionId/appium/device/unlock"],
      "is_device_locked"           => ["POST",   "/session/:sessionId/appium/device/is_locked"],
      "press_keycode"              => ["POST",   "/session/:sessionId/appium/device/press_keycode"],
      "long_press_keycode"         => ["POST",   "/session/:sessionId/appium/device/long_press_keycode"],
      "send_device_keyevent"       => ["POST",   "/session/:sessionId/appium/device/keyevent"],
      "rotate_device"              => ["POST",   "/session/:sessionId/appium/device/rotate"],
      "get_current_activity"       => ["GET",    "/session/:sessionId/appium/device/current_activity"],
      "install_app"                => ["POST",   "/session/:sessionId/appium/device/install_app"],
      "remove_app"                 => ["POST",   "/session/:sessionId/appium/device/remove_app"],
      "is_app_installed"           => ["POST",   "/session/:sessionId/appium/device/app_installed"],
      "hide_keyboard"              => ["POST",   "/session/:sessionId/appium/device/hide_keyboard"],
      "push_file"                  => ["POST",   "/session/:sessionId/appium/device/push_file"],
      "pull_file"                  => ["POST",   "/session/:sessionId/appium/device/pull_file"],
      "pull_folder"                => ["POST",   "/session/:sessionId/appium/device/pull_folder"],
      "toggle_airplane_mode"       => ["POST",   "/session/:sessionId/appium/device/toggle_airplane_mode"],
      "toggle_data"                => ["POST",   "/session/:sessionId/appium/device/toggle_data"],
      "toggle_wifi"                => ["POST",   "/session/:sessionId/appium/device/toggle_wifi"],
      "toggle_location_services"   => ["POST",   "/session/:sessionId/appium/device/toggle_location_services"],
      "open_notifications"         => ["POST",   "/session/:sessionId/appium/device/open_notifications"],
      "start_activity"             => ["POST",   "/session/:sessionId/appium/device/start_activity"],
      "touch_id"                   => ["POST",   "/session/:sessionId/appium/simulator/touch_id"],
      "launch_app"                 => ["POST",   "/session/:sessionId/appium/app/launch"],
      "close_app"                  => ["POST",   "/session/:sessionId/appium/app/close"],
      "reset_app"                  => ["POST",   "/session/:sessionId/appium/app/reset"],
      "send_to_background"         => ["POST",   "/session/:sessionId/appium/app/background"],
      "end_test_coverage"          => ["POST",   "/session/:sessionId/appium/app/end_test_coverage"],
      "get_app_strings"            => ["POST",   "/session/:sessionId/appium/app/strings"],
      "get_element_value"          => ["POST",   "/session/:sessionId/appium/element/:id/value"],
      "replace_value"              => ["POST",   "/session/:sessionId/appium/element/:id/replace_value"],
      "get_settings"               => ["GET",    "/session/:sessionId/appium/settings"],
      "set_settings"               => ["POST",   "/session/:sessionId/appium/settings"],
      "appium_callback_async_js"   => ["POST",   "/session/:sessionId/appium/receive_async_response"]
    }
  end
end
