Completed low level methods, clean code.

This commit is contained in:
jvelilla
2013-04-24 14:39:08 -03:00
parent 4f79bf2add
commit 9180667ac4
2 changed files with 916 additions and 478 deletions

View File

@@ -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

View File

@@ -9,18 +9,19 @@ class
feature
cmd_ping : STRING = ""
cmd_ping: STRING = ""
--GET / expected a 200 ok
cmd_status : STRING = "status"
cmd_status: STRING = "status"
--GET /status Query the server's current status.
cmd_new_session : STRING = "session"
cmd_new_session: STRING = "session"
--POST /session Create a new session.
cmd_sessions : STRING = "sessions"
cmd_sessions: STRING = "sessions"
--GET /sessions Returns a list of the currently active sessions.
cmd_session_by_id_tmpl : STRING ="session/$id"
cmd_session_by_id_tmpl: STRING = "session/$id"
cmd_session_by_id (id: STRING_32): STRING_32
do
@@ -28,18 +29,17 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_timeouts_tmpl : STRING_32 ="[
cmd_session_timeouts_tmpl: STRING_32 = "[
session/$id/timeouts
]"
cmd_session_timeouts (id: STRING_32):STRING_32
cmd_session_timeouts (id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_timeouts_tmpl)
Result.replace_substring_all ("$id",id)
Result.replace_substring_all ("$id", id)
end
cmd_session_timeouts_async_script_tmpl : STRING ="session/$id/timeouts/async_script"
cmd_session_timeouts_async_script_tmpl: STRING = "session/$id/timeouts/async_script"
cmd_session_timeouts_async_script (id: STRING_32): STRING_32
do
@@ -47,7 +47,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_timeouts_implicit_wait_tmpl : STRING ="session/$id/timeouts/implicit_wait"
cmd_session_timeouts_implicit_wait_tmpl: STRING = "session/$id/timeouts/implicit_wait"
cmd_session_timeouts_implicit_wait (id: STRING_32): STRING_32
do
@@ -55,8 +55,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_window_handle_tmpl : STRING ="session/$id/window_handle"
cmd_session_window_handle_tmpl: STRING = "session/$id/window_handle"
cmd_session_window_handle (id: STRING_32): STRING_32
do
@@ -64,7 +63,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_window_handles_tmpl : STRING ="session/$id/window_handles"
cmd_session_window_handles_tmpl: STRING = "session/$id/window_handles"
cmd_session_window_handles (id: STRING_32): STRING_32
do
@@ -72,7 +71,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_url_tmpl : STRING ="session/$id/url"
cmd_session_url_tmpl: STRING = "session/$id/url"
cmd_session_url (id: STRING_32): STRING_32
do
@@ -80,9 +79,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_forward_tmpl : STRING ="session/$id/forward"
cmd_session_forward_tmpl: STRING = "session/$id/forward"
cmd_session_forward (id: STRING_32): STRING_32
do
@@ -90,7 +87,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_back_tmpl : STRING ="session/$id/back"
cmd_session_back_tmpl: STRING = "session/$id/back"
cmd_session_back (id: STRING_32): STRING_32
do
@@ -98,8 +95,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_refresh_tmpl : STRING ="session/$id/refresh"
cmd_session_refresh_tmpl: STRING = "session/$id/refresh"
cmd_session_refresh (id: STRING_32): STRING_32
do
@@ -107,12 +103,10 @@ 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.
--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_tmpl: STRING = "session/$id/screenshot"
cmd_session_screenshot (id: STRING_32): STRING_32
do
@@ -120,8 +114,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_ime_available_engines_tmpl : STRING ="session/$id/ime/available_engines"
cmd_session_ime_available_engines_tmpl: STRING = "session/$id/ime/available_engines"
cmd_session_ime_available (id: STRING_32): STRING_32
do
@@ -129,7 +122,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_ime_active_engine_tmpl : STRING ="session/$id/ime/active_engine"
cmd_session_ime_active_engine_tmpl: STRING = "session/$id/ime/active_engine"
cmd_session_ime_active_engine (id: STRING_32): STRING_32
do
@@ -137,7 +130,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_ime_activated_tmpl : STRING ="session/$id/ime/activated"
cmd_session_ime_activated_tmpl: STRING = "session/$id/ime/activated"
cmd_session_ime_activated (id: STRING_32): STRING_32
do
@@ -145,7 +138,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_ime_deactivate_tmpl : STRING ="session/$id/ime/deactivate"
cmd_session_ime_deactivate_tmpl: STRING = "session/$id/ime/deactivate"
cmd_session_ime_deactivate (id: STRING_32): STRING_32
do
@@ -153,7 +146,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_ime_activate_tmpl : STRING ="session/$id/ime/activate"
cmd_session_ime_activate_tmpl: STRING = "session/$id/ime/activate"
cmd_session_ime_activate (id: STRING_32): STRING_32
do
@@ -161,11 +154,9 @@ feature
Result.replace_substring_all ("$id", id)
end
--POST /session/:sessionId/frame Change focus to another frame on the page.
--POST /session/:sessionId/frame Change focus to another frame on the page.
cmd_session_window_tmpl : STRING ="session/$id/window"
cmd_session_window_tmpl: STRING = "session/$id/window"
cmd_session_window (id: STRING_32): STRING_32
do
@@ -173,8 +164,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_window_size_tmpl : STRING ="session/$id/window/$windowHandle/size"
cmd_session_window_size_tmpl: STRING = "session/$id/window/$windowHandle/size"
cmd_session_window_size (id: STRING_32; window_handle: STRING_32): STRING_32
do
@@ -183,7 +173,7 @@ feature
Result.replace_substring_all ("$windowHandle", window_handle)
end
cmd_session_window_position_tmpl : STRING ="session/$id/window/$windowHandle/position"
cmd_session_window_position_tmpl: STRING = "session/$id/window/$windowHandle/position"
cmd_session_window_position (id: STRING_32; window_handle: STRING_32): STRING_32
do
@@ -192,7 +182,7 @@ feature
Result.replace_substring_all ("$windowHandle", window_handle)
end
cmd_session_window_maximize_tmpl : STRING ="session/$id/window/$windowHandle/maximize"
cmd_session_window_maximize_tmpl: STRING = "session/$id/window/$windowHandle/maximize"
cmd_session_window_maximize (id: STRING_32; window_handle: STRING_32): STRING_32
do
@@ -201,9 +191,7 @@ feature
Result.replace_substring_all ("$windowHandle", window_handle)
end
cmd_session_cookie_tmpl : STRING ="session/$id/cookie"
cmd_session_cookie_tmpl: STRING = "session/$id/cookie"
cmd_session_cookie (id: STRING_32): STRING_32
do
@@ -211,17 +199,16 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_cookie_delte_tmpl: STRING = "session/$id/cookie/$name"
cmd_session_cookie_delte_tmpl : STRING ="session/$id/cookie/$name"
cmd_session_cookie_delete (id: STRING_32;name : STRING_32): STRING_32
cmd_session_cookie_delete (id: STRING_32; name: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_cookie_delte_tmpl)
Result.replace_substring_all ("$id", id)
Result.replace_substring_all ("$name", name)
end
cmd_session_source_tmpl : STRING ="session/$id/source"
cmd_session_source_tmpl: STRING = "session/$id/source"
cmd_session_source (id: STRING_32): STRING_32
do
@@ -229,7 +216,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_title_tmpl : STRING ="session/$id/title"
cmd_session_title_tmpl: STRING = "session/$id/title"
cmd_session_title (id: STRING_32): STRING_32
do
@@ -237,7 +224,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_element_tmpl : STRING ="session/$id/element"
cmd_session_element_tmpl: STRING = "session/$id/element"
cmd_session_element (id: STRING_32): STRING_32
do
@@ -245,7 +232,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_elements_tmpl : STRING ="session/$id/elements"
cmd_session_elements_tmpl: STRING = "session/$id/elements"
cmd_session_elements (id: STRING_32): STRING_32
do
@@ -253,7 +240,7 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_element_active_tmpl : STRING ="session/$id/element/active"
cmd_session_element_active_tmpl: STRING = "session/$id/element/active"
cmd_session_element_active (id: STRING_32): STRING_32
do
@@ -261,128 +248,118 @@ feature
Result.replace_substring_all ("$id", id)
end
cmd_session_element_id_tmpl: STRING = "session/$sessionId/element/$id"
cmd_session_element_id_tmpl : STRING ="session/$sessionId/element/$id"
cmd_session_element_id (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_id (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_id_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
--GET /session/:sessionId/element/:id Describe the identified element.
--GET /session/:sessionId/element/:id Describe the identified element.
cmd_session_element_id_element_tmpl: STRING = "session/$sessionId/element/$id/element"
cmd_session_element_id_element_tmpl : STRING ="session/$sessionId/element/$id/element"
cmd_session_element_id_element (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_id_element (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_id_element_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_id_elements_tmpl : STRING ="session/$sessionId/element/$id/elements"
cmd_session_element_id_elements_tmpl: STRING = "session/$sessionId/element/$id/elements"
cmd_session_element_id_elements (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_id_elements (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_id_elements_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_click_tmpl: STRING = "session/$sessionId/element/$id/click"
cmd_session_element_click_tmpl : STRING ="session/$sessionId/element/$id/click"
cmd_session_element_click (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_click (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_click_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_submit_tmpl: STRING = "session/$sessionId/element/$id/submit"
cmd_session_element_submit_tmpl : STRING ="session/$sessionId/element/$id/submit"
cmd_session_element_submit (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_submit (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_submit_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_text_tmpl: STRING = "session/$sessionId/element/$id/text"
cmd_session_element_text_tmpl : STRING ="session/$sessionId/element/$id/text"
cmd_session_element_text (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_text (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_text_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_event_tmpl : STRING ="session/$sessionId/element/$id/value"
cmd_session_element_event_tmpl: STRING = "session/$sessionId/element/$id/value"
cmd_session_element_event (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_event (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_event_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_keys_tmpl : STRING ="session/$sessionId/keys"
cmd_session_keys_tmpl: STRING = "session/$sessionId/keys"
cmd_session_keys (sessionId: STRING_32 ): STRING_32
cmd_session_keys (sessionId: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_keys_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
end
cmd_session_element_name_tmpl : STRING ="session/$sessionId/element/$id/name"
cmd_session_element_name_tmpl: STRING = "session/$sessionId/element/$id/name"
cmd_session_element_name (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_name (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_name_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_clear_tmpl: STRING = "session/$sessionId/element/$id/clear"
cmd_session_element_clear_tmpl : STRING ="session/$sessionId/element/$id/clear"
cmd_session_element_clear (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_clear (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_name_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_selected_tmpl: STRING = "session/$sessionId/element/$id/selected"
cmd_session_element_selected_tmpl : STRING ="session/$sessionId/element/$id/selected"
cmd_session_element_selected (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_selected (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_selected_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_enabled_tmpl: STRING = "session/$sessionId/element/$id/enabled"
cmd_session_element_enabled_tmpl : STRING ="session/$sessionId/element/$id/enabled"
cmd_session_element_enabled (sessionId: STRING_32; id : STRING_32 ): STRING_32
cmd_session_element_enabled (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_enabled_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
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_tmpl : STRING ="session/$sessionId/element/$id/attribute/$name"
cmd_session_element_attribute_name (sessionId: STRING_32; id : STRING_32; name : STRING_32 ): STRING_32
cmd_session_element_attribute_name (sessionId: STRING_32; id: STRING_32; name: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_attribute_name_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
@@ -390,9 +367,9 @@ feature
Result.replace_substring_all ("$name", name)
end
cmd_session_element_equals_tmpl : STRING ="session/$sessionId/element/$id/equals/$other"
cmd_session_element_equals_tmpl: STRING = "session/$sessionId/element/$id/equals/$other"
cmd_session_element_equals (sessionId: STRING_32; id : STRING_32; other : STRING_32 ): STRING_32
cmd_session_element_equals (sessionId: STRING_32; id: STRING_32; other: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_equals_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
@@ -400,46 +377,45 @@ feature
Result.replace_substring_all ("$other", other)
end
cmd_session_element_displayed_tmpl : STRING ="session/$sessionId/element/$id/displayed"
cmd_session_element_displayed_tmpl: STRING = "session/$sessionId/element/$id/displayed"
cmd_session_element_displayed (sessionId: STRING_32; id : STRING_32): STRING_32
cmd_session_element_displayed (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_displayed_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_location_tmpl : STRING ="session/$sessionId/element/$id/location"
cmd_session_element_location_tmpl: STRING = "session/$sessionId/element/$id/location"
cmd_session_element_location (sessionId: STRING_32; id : STRING_32): STRING_32
cmd_session_element_location (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_location_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_location_in_view_tmpl : STRING ="session/$sessionId/element/$id/location_in_view"
cmd_session_element_location_in_view_tmpl: STRING = "session/$sessionId/element/$id/location_in_view"
cmd_session_element_location_in_view (sessionId: STRING_32; id : STRING_32): STRING_32
cmd_session_element_location_in_view (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_location_in_view_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_size_tmpl: STRING = "session/$sessionId/element/$id/size"
cmd_session_element_size_tmpl : STRING ="session/$sessionId/element/$id/size"
cmd_session_element_size (sessionId: STRING_32; id : STRING_32): STRING_32
cmd_session_element_size (sessionId: STRING_32; id: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_size_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
Result.replace_substring_all ("$id", id)
end
cmd_session_element_css_value_tmpl : STRING ="session/$sessionId/element/$id/css/$propertyName"
cmd_session_element_css_value_tmpl: STRING = "session/$sessionId/element/$id/css/$propertyName"
cmd_session_element_css_value (sessionId: STRING_32; id : STRING_32; property_name : STRING_32): STRING_32
cmd_session_element_css_value (sessionId: STRING_32; id: STRING_32; property_name: STRING_32): STRING_32
do
create Result.make_from_string (cmd_session_element_css_value_tmpl)
Result.replace_substring_all ("$sessionId", sessionId)
@@ -447,7 +423,7 @@ feature
Result.replace_substring_all ("$propertyName", property_name)
end
cmd_session_browser_orientation_tmpl : STRING ="session/$sessionId/orientation"
cmd_session_browser_orientation_tmpl: STRING = "session/$sessionId/orientation"
cmd_session_browser_orientation (sessionId: STRING_32): STRING_32
do
@@ -455,7 +431,7 @@ feature
Result.replace_substring_all ("$sessionId", sessionId)
end
cmd_session_alert_text_tmpl : STRING ="session/$sessionId/alert_text"
cmd_session_alert_text_tmpl: STRING = "session/$sessionId/alert_text"
cmd_session_alert_text (sessionId: STRING_32): STRING_32
do
@@ -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