|
20 | 20 | class Dictionary{ |
21 | 21 | public static $commands = array( |
22 | 22 | 'start_session' => array('http_method' => HttpClient::POST , 'path' => "session"), |
23 | | - 'get_capabilities' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id"), |
24 | | - 'quit' => array('http_method' => HttpClient::DELETE , 'path' => "session/:session_id"), |
| 23 | + 'get_capabilities' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}"), |
| 24 | + 'quit' => array('http_method' => HttpClient::DELETE , 'path' => "session/{session_id}"), |
25 | 25 |
|
26 | | - 'get_url' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/url"), |
27 | | - 'get_current_url' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/url"), |
| 26 | + 'get_url' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/url"), |
| 27 | + 'get_current_url' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/url"), |
28 | 28 |
|
29 | 29 | 'get_sessions' => array('http_method' => HttpClient::GET , 'path' => "sessions"), |
30 | 30 |
|
31 | | - 'implicit_wait' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/timeouts/implicit_wait"), |
| 31 | + 'implicit_wait' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/timeouts/implicit_wait"), |
32 | 32 | 'status' => array('http_method' => HttpClient::GET , 'path' => "status"), |
33 | 33 |
|
34 | | - 'forward' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/forward"), |
35 | | - 'back' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/back"), |
36 | | - 'refresh' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/refresh"), |
37 | | - |
38 | | - 'source' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/source"), |
39 | | - 'title' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/title"), |
40 | | - |
41 | | - 'screenshot' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/screenshot"), |
42 | | - |
43 | | - 'element' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element"), |
44 | | - 'element_in_element' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/:element_id/element"), |
45 | | - 'elements' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/elements"), |
46 | | - 'elements_in_element' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/:element_id/elements"), |
47 | | - 'active_element' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/active"), |
48 | | - 'element_value' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/:element_id/value"), |
49 | | - 'element_text' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/text"), |
50 | | - 'element_tag_name' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/name"), |
51 | | - 'element_attribute' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/attribute/:attribute_name"), |
52 | | - 'element_property_name' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/css/:property_name"), |
53 | | - 'element_is_selected' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/selected"), |
54 | | - 'element_is_displayed' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/displayed"), |
55 | | - 'element_is_enabled' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/enabled"), |
56 | | - 'element_size' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/size"), |
57 | | - 'clear_element' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/:element_id/clear"), |
58 | | - 'click_element' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/:element_id/click"), |
59 | | - 'element_submit' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/element/:element_id/submit"), |
60 | | - 'describe_element' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id"), |
61 | | - 'element_location' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/location"), |
62 | | - 'element_location_view' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/location_in_view"), |
63 | | - 'compare_to_other' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/element/:element_id/equals/:element_id_compare"), |
64 | | - |
65 | | - 'load_timeout' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/timeouts"), |
66 | | - 'async_script_timeout' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/timeouts/async_script"), |
67 | | - |
68 | | - 'execute_script' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/execute"), |
69 | | - 'execute_async_script' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/execute_async"), |
70 | | - |
71 | | - 'frame' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/frame"), |
72 | | - 'window' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/window"), |
73 | | - 'window_maximize' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/window/:window_handle/maximize"), |
74 | | - 'close_window' => array('http_method' => HttpClient::DELETE , 'path' => "session/:session_id/window"), |
75 | | - 'window_handle' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/window_handle"), |
76 | | - 'window_handles' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/window_handles"), |
77 | | - 'set_window_size' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/window/:window_handle/size"), |
78 | | - 'get_window_size' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/window/:window_handle/size"), |
79 | | - 'set_window_position' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/window/:window_handle/position"), |
80 | | - 'get_window_position' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/window/:window_handle/position"), |
81 | | - |
82 | | - 'add_cookie' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/cookie"), |
83 | | - 'get_cookies' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/cookie"), |
84 | | - 'clear_cookie' => array('http_method' => HttpClient::DELETE , 'path' => "session/:session_id/cookie/:cookie_name"), |
85 | | - 'clear_cookies' => array('http_method' => HttpClient::DELETE , 'path' => "session/:session_id/cookie"), |
86 | | - |
87 | | - 'dismiss_alert' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/dismiss_alert"), |
88 | | - 'accept_alert' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/accept_alert"), |
89 | | - 'get_alert_text' => array('http_method' => HttpClient::GET , 'path' => "session/:session_id/alert_text"), |
90 | | - 'set_alert_text' => array('http_method' => HttpClient::POST , 'path' => "session/:session_id/alert_text") |
| 34 | + 'forward' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/forward"), |
| 35 | + 'back' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/back"), |
| 36 | + 'refresh' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/refresh"), |
| 37 | + |
| 38 | + 'source' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/source"), |
| 39 | + 'title' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/title"), |
| 40 | + |
| 41 | + 'screenshot' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/screenshot"), |
| 42 | + |
| 43 | + 'element' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element"), |
| 44 | + 'element_in_element' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/{element_id}/element"), |
| 45 | + 'elements' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/elements"), |
| 46 | + 'elements_in_element' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/{element_id}/elements"), |
| 47 | + 'active_element' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/active"), |
| 48 | + 'element_value' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/{element_id}/value"), |
| 49 | + 'element_text' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/text"), |
| 50 | + 'element_tag_name' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/name"), |
| 51 | + 'element_attribute' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/attribute/{attribute_name}"), |
| 52 | + 'element_property_name' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/css/{property_name}"), |
| 53 | + 'element_is_selected' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/selected"), |
| 54 | + 'element_is_displayed' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/displayed"), |
| 55 | + 'element_is_enabled' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/enabled"), |
| 56 | + 'element_size' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/size"), |
| 57 | + 'clear_element' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/{element_id}/clear"), |
| 58 | + 'click_element' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/{element_id}/click"), |
| 59 | + 'element_submit' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/element/{element_id}/submit"), |
| 60 | + 'describe_element' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}"), |
| 61 | + 'element_location' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/location"), |
| 62 | + 'element_location_view' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/location_in_view"), |
| 63 | + 'compare_to_other' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/element/{element_id}/equals/{element_id_compare}"), |
| 64 | + |
| 65 | + 'load_timeout' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/timeouts"), |
| 66 | + 'async_script_timeout' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/timeouts/async_script"), |
| 67 | + |
| 68 | + 'execute_script' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/execute"), |
| 69 | + 'execute_async_script' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/execute_async"), |
| 70 | + |
| 71 | + 'frame' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/frame"), |
| 72 | + 'window' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/window"), |
| 73 | + 'window_maximize' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/window/{window_handle}/maximize"), |
| 74 | + 'close_window' => array('http_method' => HttpClient::DELETE , 'path' => "session/{session_id}/window"), |
| 75 | + 'window_handle' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/window_handle"), |
| 76 | + 'window_handles' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/window_handles"), |
| 77 | + 'set_window_size' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/window/{window_handle}/size"), |
| 78 | + 'get_window_size' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/window/{window_handle}/size"), |
| 79 | + 'set_window_position' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/window/{window_handle}/position"), |
| 80 | + 'get_window_position' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/window/{window_handle}/position"), |
| 81 | + |
| 82 | + 'add_cookie' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/cookie"), |
| 83 | + 'get_cookies' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/cookie"), |
| 84 | + 'clear_cookie' => array('http_method' => HttpClient::DELETE , 'path' => "session/{session_id}/cookie/{cookie_name}"), |
| 85 | + 'clear_cookies' => array('http_method' => HttpClient::DELETE , 'path' => "session/{session_id}/cookie"), |
| 86 | + |
| 87 | + 'dismiss_alert' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/dismiss_alert"), |
| 88 | + 'accept_alert' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/accept_alert"), |
| 89 | + 'get_alert_text' => array('http_method' => HttpClient::GET , 'path' => "session/{session_id}/alert_text"), |
| 90 | + 'set_alert_text' => array('http_method' => HttpClient::POST , 'path' => "session/{session_id}/alert_text") |
91 | 91 | ); |
92 | 92 | } |
0 commit comments