Completed low level methods, clean code.
This commit is contained in:
@@ -49,7 +49,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_status)
|
||||
Result := new_response ("", resp)
|
||||
end
|
||||
@@ -79,7 +78,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_sessions)
|
||||
Result := new_response ("", resp)
|
||||
end
|
||||
@@ -90,7 +88,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_by_id (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -101,7 +98,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_delete (cmd_session_by_id ( session_id ))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -112,7 +108,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_timeouts (a_session_id), a_data_timeout)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -123,7 +118,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_timeouts_async_script (a_session_id), a_data_timeout)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -134,7 +128,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_timeouts_implicit_wait (a_session_id), a_data_timeout)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -145,7 +138,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_window_handle (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -156,7 +148,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_window_handles (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -167,7 +158,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_url (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -178,7 +168,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_url (a_session_id), a_url)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -189,7 +178,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_forward (a_session_id), Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -200,7 +188,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_back (a_session_id), Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -211,7 +198,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_refresh (a_session_id), Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -240,7 +226,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_screenshot (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -251,7 +236,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_ime_available (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -262,7 +246,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_ime_active_engine (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -273,7 +256,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_ime_activated (session_id))
|
||||
Result := new_response (session_id, resp)
|
||||
end
|
||||
@@ -284,7 +266,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_ime_deactivate (a_session_id), Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -295,7 +276,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_ime_activate (a_session_id), an_engine)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -306,7 +286,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_window (a_session_id), a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -318,7 +297,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_delete (cmd_session_window (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -329,7 +307,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_window_size (a_session_id,a_window_handle), a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -340,7 +317,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_window_size (a_session_id,a_window_handle))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -351,7 +327,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_window_position (a_session_id,a_window_handle), a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -362,7 +337,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_window_size (a_session_id,a_window_handle))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -373,7 +347,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_window_maximize (a_session_id,a_window_handle), Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -385,7 +358,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_cookie (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -396,7 +368,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_cookie (a_session_id),a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -407,7 +378,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_delete (cmd_session_cookie (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -418,7 +388,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_delete (cmd_session_cookie_delete (a_session_id,a_name))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -429,7 +398,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_source (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -441,7 +409,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_title (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -453,7 +420,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element (a_session_id),a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -465,7 +431,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element_id_element (a_session_id,id),a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -477,7 +442,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_elements (a_session_id),a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -490,7 +454,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_active (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -502,7 +465,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element_id_elements (a_session_id,id),a_data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -513,7 +475,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element_click (a_session_id,id),Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -525,7 +486,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element_submit (a_session_id,id),Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -537,7 +497,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_text (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -548,7 +507,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element_event (a_session_id,id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -560,7 +518,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_keys (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -571,7 +528,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_name (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -583,7 +539,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_element_clear (a_session_id,id), Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -594,7 +549,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_enabled (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -605,7 +559,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_selected (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -616,7 +569,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_attribute_name (a_session_id,id,name))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -627,7 +579,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_equals (a_session_id,id,other))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -638,7 +589,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_displayed (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -649,7 +599,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_location (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -660,7 +609,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_location_in_view (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -672,7 +620,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_size (a_session_id,id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -683,7 +630,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_element_css_value (a_session_id,id, property_name))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -695,7 +641,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_browser_orientation (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -707,7 +652,6 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_post (cmd_session_browser_orientation (a_session_id), data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
@@ -718,12 +662,363 @@ feature -- Commands
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
create Result.make_empty
|
||||
resp := execute_get (cmd_session_alert_text (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
send_alert_text (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_alert_text (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
accept_alert (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_accept_alert (a_session_id),Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
dismiss_alert (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_dismiss_alert (a_session_id),Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
move_to (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_move_to (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
|
||||
click (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_click (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
button_down (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_buttondown (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
button_up (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_buttonup (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
double_click (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_double_click (a_session_id),Void)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
|
||||
touch_click (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_click (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
touch_down (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_down (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
touch_up (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_up (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
touch_move (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_move (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
start_touch_scroll (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_scroll (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
|
||||
touch_scroll (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
Result := start_touch_scroll (a_session_id, data)
|
||||
end
|
||||
|
||||
touch_double_click (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_double_click (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
|
||||
touch_long_click (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_long_click (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
start_touch_flick (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_touch_flick (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
|
||||
touch_flick (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
Result := start_touch_flick (a_session_id, data)
|
||||
end
|
||||
|
||||
|
||||
retrieve_geo_location (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_geo_location (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
set_geo_location (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_geo_location (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
retrieve_local_storage (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_local_storage (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
set_location_storage (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_local_storage (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
delete_local_storage (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_delete (cmd_session_local_storage (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
retrieve_storage_by_key (a_session_id: STRING_32; key : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_local_storage_key (a_session_id,key))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
delete_storage_by_key (a_session_id: STRING_32; key : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_delete (cmd_session_local_storage_key (a_session_id,key))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
local_storage_size (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_local_storage_size (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
session_storage_keys (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_storage (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
set_session_storage (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_storage (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
delete_session_storage (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_delete (cmd_session_storage (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
retrive_storage_item_by_key (a_session_id: STRING_32; key : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_storage_key (a_session_id,key))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
remove_storage_item_by_key (a_session_id: STRING_32; key : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_delete (cmd_session_storage_key (a_session_id,key))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
session_storage_size (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_storage_size (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
log (a_session_id: STRING_32; data : STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_post (cmd_session_log (a_session_id),data)
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
available_log_types (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_log_types (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
application_cache_status (a_session_id: STRING_32) : SE_RESPONSE
|
||||
require
|
||||
selinum_server_available: is_available
|
||||
local
|
||||
resp: HTTP_CLIENT_RESPONSE
|
||||
do
|
||||
resp := execute_get (cmd_session_application_cache (a_session_id))
|
||||
Result := new_response (a_session_id, resp)
|
||||
end
|
||||
|
||||
feature {NONE} -- Implementation
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ feature
|
||||
|
||||
cmd_new_session: STRING = "session"
|
||||
--POST /session Create a new session.
|
||||
|
||||
cmd_sessions: STRING = "sessions"
|
||||
--GET /sessions Returns a list of the currently active sessions.
|
||||
|
||||
@@ -28,7 +29,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_timeouts_tmpl: STRING_32 = "[
|
||||
session/$id/timeouts
|
||||
]"
|
||||
@@ -55,7 +55,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_window_handle_tmpl: STRING = "session/$id/window_handle"
|
||||
|
||||
cmd_session_window_handle (id: STRING_32): STRING_32
|
||||
@@ -80,8 +79,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
|
||||
cmd_session_forward_tmpl: STRING = "session/$id/forward"
|
||||
|
||||
cmd_session_forward (id: STRING_32): STRING_32
|
||||
@@ -98,7 +95,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_refresh_tmpl: STRING = "session/$id/refresh"
|
||||
|
||||
cmd_session_refresh (id: STRING_32): STRING_32
|
||||
@@ -107,11 +103,9 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
--POST /session/:sessionId/execute Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame.
|
||||
--POST /session/:sessionId/execute_async Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame.
|
||||
|
||||
|
||||
cmd_session_screenshot_tmpl: STRING = "session/$id/screenshot"
|
||||
|
||||
cmd_session_screenshot (id: STRING_32): STRING_32
|
||||
@@ -120,7 +114,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_ime_available_engines_tmpl: STRING = "session/$id/ime/available_engines"
|
||||
|
||||
cmd_session_ime_available (id: STRING_32): STRING_32
|
||||
@@ -161,8 +154,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
|
||||
--POST /session/:sessionId/frame Change focus to another frame on the page.
|
||||
|
||||
cmd_session_window_tmpl: STRING = "session/$id/window"
|
||||
@@ -173,7 +164,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_window_size_tmpl: STRING = "session/$id/window/$windowHandle/size"
|
||||
|
||||
cmd_session_window_size (id: STRING_32; window_handle: STRING_32): STRING_32
|
||||
@@ -201,8 +191,6 @@ feature
|
||||
Result.replace_substring_all ("$windowHandle", window_handle)
|
||||
end
|
||||
|
||||
|
||||
|
||||
cmd_session_cookie_tmpl: STRING = "session/$id/cookie"
|
||||
|
||||
cmd_session_cookie (id: STRING_32): STRING_32
|
||||
@@ -211,7 +199,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_cookie_delte_tmpl: STRING = "session/$id/cookie/$name"
|
||||
|
||||
cmd_session_cookie_delete (id: STRING_32; name: STRING_32): STRING_32
|
||||
@@ -261,7 +248,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_id_tmpl: STRING = "session/$sessionId/element/$id"
|
||||
|
||||
cmd_session_element_id (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -271,7 +257,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
--GET /session/:sessionId/element/:id Describe the identified element.
|
||||
|
||||
cmd_session_element_id_element_tmpl: STRING = "session/$sessionId/element/$id/element"
|
||||
@@ -292,7 +277,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_click_tmpl: STRING = "session/$sessionId/element/$id/click"
|
||||
|
||||
cmd_session_element_click (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -302,7 +286,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_submit_tmpl: STRING = "session/$sessionId/element/$id/submit"
|
||||
|
||||
cmd_session_element_submit (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -312,8 +295,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
|
||||
cmd_session_element_text_tmpl: STRING = "session/$sessionId/element/$id/text"
|
||||
|
||||
cmd_session_element_text (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -349,7 +330,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_clear_tmpl: STRING = "session/$sessionId/element/$id/clear"
|
||||
|
||||
cmd_session_element_clear (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -359,7 +339,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_selected_tmpl: STRING = "session/$sessionId/element/$id/selected"
|
||||
|
||||
cmd_session_element_selected (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -369,7 +348,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_enabled_tmpl: STRING = "session/$sessionId/element/$id/enabled"
|
||||
|
||||
cmd_session_element_enabled (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -379,7 +357,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_attribute_name_tmpl: STRING = "session/$sessionId/element/$id/attribute/$name"
|
||||
|
||||
cmd_session_element_attribute_name (sessionId: STRING_32; id: STRING_32; name: STRING_32): STRING_32
|
||||
@@ -427,7 +404,6 @@ feature
|
||||
Result.replace_substring_all ("$id", id)
|
||||
end
|
||||
|
||||
|
||||
cmd_session_element_size_tmpl: STRING = "session/$sessionId/element/$id/size"
|
||||
|
||||
cmd_session_element_size (sessionId: STRING_32; id: STRING_32): STRING_32
|
||||
@@ -463,39 +439,206 @@ feature
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_accept_alert_tmpl: STRING = "session/$sessionId/accept_alert"
|
||||
|
||||
cmd_session_accept_alert (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_accept_alert_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_dismiss_alert_tmpl: STRING = "session/$sessionId/dismiss_alert"
|
||||
|
||||
cmd_session_dismiss_alert (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_dismiss_alert_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_move_to_tmpl: STRING = "session/$sessionId/move_to"
|
||||
|
||||
cmd_session_move_to (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_move_to_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_click_tmpl: STRING = "session/$sessionId/click"
|
||||
|
||||
cmd_session_click (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_click_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_buttondown_tmpl: STRING = "session/$sessionId/buttondown"
|
||||
|
||||
cmd_session_buttondown (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_buttondown_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_buttonup_tmpl: STRING = "session/$sessionId/buttonup"
|
||||
|
||||
cmd_session_buttonup (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_buttonup_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_doubleclick_tmpl: STRING = "session/$sessionId/doubleclick"
|
||||
|
||||
cmd_session_double_click (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_doubleclick_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_click_tmpl: STRING = "session/$sessionId/touch/click"
|
||||
|
||||
cmd_session_touch_click (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_click_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_down_tmpl: STRING = "session/$sessionId/touch/down"
|
||||
|
||||
cmd_session_touch_down (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_down_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_up_tmpl: STRING = "session/$sessionId/touch/up"
|
||||
|
||||
cmd_session_touch_up (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_up_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_move_tmpl: STRING = "session/$sessionId/touch/move"
|
||||
|
||||
cmd_session_touch_move (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_move_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_scroll_tmpl: STRING = "session/$sessionId/touch/scroll"
|
||||
|
||||
cmd_session_touch_scroll (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_scroll_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_double_click_tmpl: STRING = "session/$sessionId/touch/doubleclick"
|
||||
|
||||
cmd_session_touch_double_click (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_double_click_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_long_click_tmpl: STRING = "session/$sessionId/touch/longclick"
|
||||
|
||||
cmd_session_touch_long_click (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_long_click_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_touch_flick_tmpl: STRING = "session/$sessionId/touch/flick"
|
||||
|
||||
cmd_session_touch_flick (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_touch_flick_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_geo_location_tmpl: STRING = "session/$sessionId/location"
|
||||
|
||||
cmd_session_geo_location (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_geo_location_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_local_storage_tmpl: STRING = "session/$sessionId/local_storage"
|
||||
|
||||
cmd_session_local_storage (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_local_storage_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_local_storage_key_tmpl: STRING = "session/$sessionId/local_storage/key/$key"
|
||||
|
||||
cmd_session_local_storage_key (sessionId: STRING_32; key : STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_local_storage_key_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
Result.replace_substring_all ("$key", key)
|
||||
end
|
||||
|
||||
cmd_session_local_storage_size_tmpl: STRING = "session/$sessionId/local_storage/size"
|
||||
|
||||
cmd_session_local_storage_size (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_local_storage_size_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_storage_tmpl: STRING = "session/$sessionId/session_storage"
|
||||
|
||||
cmd_session_storage (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_storage_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_storage_key_tmpl: STRING = "session/$sessionId/session_storage/key/$key"
|
||||
|
||||
cmd_session_storage_key (sessionId: STRING_32; key : STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_storage_key_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
Result.replace_substring_all ("$key", key)
|
||||
end
|
||||
|
||||
cmd_session_storage_size_tmpl: STRING = "session/$sessionId/session_storage/size"
|
||||
|
||||
cmd_session_storage_size (sessionId: STRING_32; key : STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_storage_size_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_log_tmpl: STRING = "session/$sessionId/log"
|
||||
|
||||
cmd_session_log (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_log_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_log_types_tmpl: STRING = "session/$sessionId/log/types"
|
||||
|
||||
cmd_session_log_types (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_log_types_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
cmd_session_application_cache_tmpl: STRING = "session/$sessionId/application_cache/status"
|
||||
|
||||
cmd_session_application_cache (sessionId: STRING_32): STRING_32
|
||||
do
|
||||
create Result.make_from_string (cmd_session_application_cache_tmpl)
|
||||
Result.replace_substring_all ("$sessionId", sessionId)
|
||||
end
|
||||
|
||||
--POST /session/:sessionId/accept_alert Accepts the currently displayed alert dialog.
|
||||
--POST /session/:sessionId/dismiss_alert Dismisses the currently displayed alert dialog.
|
||||
--POST /session/:sessionId/moveto Move the mouse by an offset of the specificed element.
|
||||
--POST /session/:sessionId/click Click any mouse button (at the coordinates set by the last moveto command).
|
||||
--POST /session/:sessionId/buttondown Click and hold the left mouse button (at the coordinates set by the last moveto command).
|
||||
--POST /session/:sessionId/buttonup Releases the mouse button previously held (where the mouse is currently at).
|
||||
--POST /session/:sessionId/doubleclick Double-clicks at the current mouse coordinates (set by moveto).
|
||||
--POST /session/:sessionId/touch/click Single tap on the touch enabled device.
|
||||
--POST /session/:sessionId/touch/down Finger down on the screen.
|
||||
--POST /session/:sessionId/touch/up Finger up on the screen.
|
||||
--POST /session/:sessionId/touch/move Finger move on the screen.
|
||||
--POST /session/:sessionId/touch/scroll Scroll on the touch screen using finger based motion events.
|
||||
--POST /session/:sessionId/touch/scroll Scroll on the touch screen using finger based motion events.
|
||||
--POST /session/:sessionId/touch/doubleclick Double tap on the touch screen using finger motion events.
|
||||
--POST /session/:sessionId/touch/longclick Long press on the touch screen using finger motion events.
|
||||
--POST /session/:sessionId/touch/flick Flick on the touch screen using finger motion events.
|
||||
--POST /session/:sessionId/touch/flick Flick on the touch screen using finger motion events.
|
||||
--GET /session/:sessionId/location Get the current geo location.
|
||||
--POST /session/:sessionId/location Set the current geo location.
|
||||
--GET /session/:sessionId/local_storage Get all keys of the storage.
|
||||
--POST /session/:sessionId/local_storage Set the storage item for the given key.
|
||||
--DELETE /session/:sessionId/local_storage Clear the storage.
|
||||
--GET /session/:sessionId/local_storage/key/:key Get the storage item for the given key.
|
||||
--DELETE /session/:sessionId/local_storage/key/:key Remove the storage item for the given key.
|
||||
--GET /session/:sessionId/local_storage/size Get the number of items in the storage.
|
||||
--GET /session/:sessionId/session_storage Get all keys of the storage.
|
||||
--POST /session/:sessionId/session_storage Set the storage item for the given key.
|
||||
--DELETE /session/:sessionId/session_storage Clear the storage.
|
||||
--GET /session/:sessionId/session_storage/key/:key Get the storage item for the given key.
|
||||
--DELETE /session/:sessionId/session_storage/key/:key Remove the storage item for the given key.
|
||||
--GET /session/:sessionId/session_storage/size Get the number of items in the storage.
|
||||
--POST /session/:sessionId/log Get the log for a given log type.
|
||||
--GET /session/:sessionId/log/types Get available log types.
|
||||
--GET /session/:sessionId/application_cache/status Get the status of the html5 application cache.
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user