selenium-webdriver 2.53.3 → 3.142.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES +665 -8
  3. data/Gemfile +2 -0
  4. data/LICENSE +1 -1
  5. data/README.md +2 -3
  6. data/lib/selenium/server.rb +76 -73
  7. data/lib/selenium/webdriver/atoms/getAttribute.js +7 -0
  8. data/lib/selenium/webdriver/atoms/isDisplayed.js +102 -0
  9. data/lib/selenium/webdriver/{phantomjs.rb → atoms.rb} +10 -14
  10. data/lib/selenium/webdriver/chrome/bridge.rb +30 -101
  11. data/lib/selenium/webdriver/chrome/driver.rb +127 -0
  12. data/lib/selenium/webdriver/chrome/options.rb +190 -0
  13. data/lib/selenium/webdriver/chrome/profile.rb +21 -20
  14. data/lib/selenium/webdriver/chrome/service.rb +26 -93
  15. data/lib/selenium/webdriver/chrome.rb +15 -6
  16. data/lib/selenium/webdriver/common/action_builder.rb +52 -58
  17. data/lib/selenium/webdriver/common/alert.rb +7 -15
  18. data/lib/selenium/webdriver/common/bridge_helper.rb +18 -22
  19. data/lib/selenium/webdriver/common/driver.rb +72 -72
  20. data/lib/selenium/webdriver/common/driver_extensions/downloads_files.rb +45 -0
  21. data/lib/selenium/webdriver/common/driver_extensions/has_addons.rb +50 -0
  22. data/lib/selenium/webdriver/common/driver_extensions/{has_input_devices.rb → has_debugger.rb} +11 -27
  23. data/lib/selenium/webdriver/common/driver_extensions/has_location.rb +6 -10
  24. data/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb +51 -0
  25. data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +7 -8
  26. data/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb +51 -0
  27. data/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +2 -4
  28. data/lib/selenium/webdriver/common/driver_extensions/has_session_id.rb +2 -4
  29. data/lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb +3 -5
  30. data/lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb +2 -5
  31. data/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +6 -9
  32. data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +9 -7
  33. data/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb +3 -8
  34. data/lib/selenium/webdriver/common/element.rb +59 -39
  35. data/lib/selenium/webdriver/common/error.rb +259 -104
  36. data/lib/selenium/webdriver/common/file_reaper.rb +6 -14
  37. data/lib/selenium/webdriver/common/html5/local_storage.rb +8 -10
  38. data/lib/selenium/webdriver/common/html5/session_storage.rb +8 -10
  39. data/lib/selenium/webdriver/common/html5/shared_web_storage.rb +8 -16
  40. data/lib/selenium/webdriver/common/interactions/input_device.rb +54 -0
  41. data/lib/selenium/webdriver/common/interactions/interaction.rb +53 -0
  42. data/lib/selenium/webdriver/{safari/browser.rb → common/interactions/interactions.rb} +17 -14
  43. data/lib/selenium/webdriver/common/interactions/key_actions.rb +145 -0
  44. data/lib/selenium/webdriver/common/interactions/key_input.rb +66 -0
  45. data/lib/selenium/webdriver/{android.rb → common/interactions/none_input.rb} +14 -6
  46. data/lib/selenium/webdriver/common/interactions/pointer_actions.rb +363 -0
  47. data/lib/selenium/webdriver/common/interactions/pointer_input.rb +139 -0
  48. data/lib/selenium/webdriver/common/keyboard.rb +10 -14
  49. data/lib/selenium/webdriver/common/keys.rb +102 -82
  50. data/lib/selenium/webdriver/common/log_entry.rb +7 -8
  51. data/lib/selenium/webdriver/common/logger.rb +115 -0
  52. data/lib/selenium/webdriver/common/logs.rb +4 -6
  53. data/lib/selenium/webdriver/common/manager.rb +177 -0
  54. data/lib/selenium/webdriver/common/mouse.rb +12 -14
  55. data/lib/selenium/webdriver/common/navigation.rb +4 -6
  56. data/lib/selenium/webdriver/common/options.rb +26 -127
  57. data/lib/selenium/webdriver/common/platform.rb +75 -101
  58. data/lib/selenium/webdriver/common/port_prober.rb +7 -19
  59. data/lib/selenium/webdriver/common/profile_helper.rb +8 -11
  60. data/lib/selenium/webdriver/common/proxy.rb +68 -74
  61. data/lib/selenium/webdriver/common/search_context.rb +28 -37
  62. data/lib/selenium/webdriver/common/service.rb +219 -0
  63. data/lib/selenium/webdriver/common/socket_lock.rb +15 -16
  64. data/lib/selenium/webdriver/common/socket_poller.rb +30 -28
  65. data/lib/selenium/webdriver/common/target_locator.rb +16 -18
  66. data/lib/selenium/webdriver/common/timeouts.rb +6 -8
  67. data/lib/selenium/webdriver/common/touch_action_builder.rb +5 -10
  68. data/lib/selenium/webdriver/common/touch_screen.rb +22 -23
  69. data/lib/selenium/webdriver/common/w3c_action_builder.rb +212 -0
  70. data/lib/selenium/webdriver/common/w3c_manager.rb +45 -0
  71. data/lib/selenium/webdriver/common/wait.rb +17 -16
  72. data/lib/selenium/webdriver/common/window.rb +50 -17
  73. data/lib/selenium/webdriver/common/zipper.rb +9 -13
  74. data/lib/selenium/webdriver/common.rb +21 -7
  75. data/lib/selenium/webdriver/edge/bridge.rb +34 -63
  76. data/lib/selenium/webdriver/edge/driver.rb +66 -0
  77. data/lib/selenium/webdriver/edge/options.rb +80 -0
  78. data/lib/selenium/webdriver/edge/service.rb +23 -95
  79. data/lib/selenium/webdriver/edge.rb +13 -13
  80. data/lib/selenium/webdriver/firefox/binary.rb +45 -60
  81. data/lib/selenium/webdriver/firefox/driver.rb +50 -0
  82. data/lib/selenium/webdriver/firefox/extension/prefs.json +3 -12
  83. data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
  84. data/lib/selenium/webdriver/firefox/extension.rb +20 -10
  85. data/lib/selenium/webdriver/firefox/launcher.rb +16 -22
  86. data/lib/selenium/webdriver/firefox/legacy/driver.rb +83 -0
  87. data/lib/selenium/webdriver/firefox/marionette/bridge.rb +49 -0
  88. data/lib/selenium/webdriver/firefox/marionette/driver.rb +90 -0
  89. data/lib/selenium/webdriver/firefox/options.rb +162 -0
  90. data/lib/selenium/webdriver/firefox/profile.rb +47 -48
  91. data/lib/selenium/webdriver/firefox/profiles_ini.rb +11 -18
  92. data/lib/selenium/webdriver/firefox/service.rb +24 -95
  93. data/lib/selenium/webdriver/firefox/util.rb +2 -4
  94. data/lib/selenium/webdriver/firefox.rb +27 -12
  95. data/lib/selenium/webdriver/ie/driver.rb +85 -0
  96. data/lib/selenium/webdriver/ie/options.rb +138 -0
  97. data/lib/selenium/webdriver/ie/service.rb +54 -0
  98. data/lib/selenium/webdriver/ie.rb +12 -10
  99. data/lib/selenium/webdriver/remote/bridge.rb +100 -564
  100. data/lib/selenium/webdriver/remote/capabilities.rb +98 -100
  101. data/lib/selenium/webdriver/remote/driver.rb +51 -0
  102. data/lib/selenium/webdriver/remote/http/common.rb +34 -22
  103. data/lib/selenium/webdriver/remote/http/curb.rb +13 -14
  104. data/lib/selenium/webdriver/remote/http/default.rb +62 -43
  105. data/lib/selenium/webdriver/remote/http/persistent.rb +12 -9
  106. data/lib/selenium/webdriver/remote/oss/bridge.rb +594 -0
  107. data/lib/selenium/webdriver/remote/oss/commands.rb +223 -0
  108. data/lib/selenium/webdriver/remote/response.rb +48 -28
  109. data/lib/selenium/webdriver/remote/server_error.rb +3 -5
  110. data/lib/selenium/webdriver/remote/w3c/bridge.rb +605 -0
  111. data/lib/selenium/webdriver/remote/w3c/capabilities.rb +310 -0
  112. data/lib/selenium/webdriver/remote/w3c/commands.rb +157 -0
  113. data/lib/selenium/webdriver/remote.rb +10 -16
  114. data/lib/selenium/webdriver/safari/bridge.rb +17 -101
  115. data/lib/selenium/webdriver/{firefox/w3c_bridge.rb → safari/driver.rb} +27 -25
  116. data/lib/selenium/webdriver/safari/options.rb +29 -31
  117. data/lib/selenium/webdriver/safari/service.rb +38 -0
  118. data/lib/selenium/webdriver/safari.rb +27 -27
  119. data/lib/selenium/webdriver/support/abstract_event_listener.rb +19 -4
  120. data/lib/selenium/webdriver/support/block_event_listener.rb +3 -5
  121. data/lib/selenium/webdriver/support/color.rb +60 -43
  122. data/lib/selenium/webdriver/support/escaper.rb +43 -0
  123. data/lib/selenium/webdriver/support/event_firing_bridge.rb +39 -41
  124. data/lib/selenium/webdriver/support/select.rb +45 -97
  125. data/lib/selenium/webdriver/support.rb +3 -2
  126. data/lib/selenium/webdriver/{iphone.rb → version.rb} +3 -7
  127. data/lib/selenium/webdriver.rb +36 -23
  128. data/lib/selenium-webdriver.rb +2 -2
  129. data/selenium-webdriver.gemspec +42 -29
  130. metadata +331 -262
  131. data/lib/selenium/client/base.rb +0 -151
  132. data/lib/selenium/client/driver.rb +0 -29
  133. data/lib/selenium/client/errors.rb +0 -28
  134. data/lib/selenium/client/extensions.rb +0 -132
  135. data/lib/selenium/client/idiomatic.rb +0 -507
  136. data/lib/selenium/client/javascript_expression_builder.rb +0 -135
  137. data/lib/selenium/client/javascript_frameworks/jquery.rb +0 -32
  138. data/lib/selenium/client/javascript_frameworks/prototype.rb +0 -32
  139. data/lib/selenium/client/legacy_driver.rb +0 -1722
  140. data/lib/selenium/client/protocol.rb +0 -123
  141. data/lib/selenium/client/selenium_helper.rb +0 -49
  142. data/lib/selenium/client.rb +0 -57
  143. data/lib/selenium/rake/server_task.rb +0 -176
  144. data/lib/selenium/webdriver/android/bridge.rb +0 -68
  145. data/lib/selenium/webdriver/common/core_ext/base64.rb +0 -28
  146. data/lib/selenium/webdriver/common/core_ext/dir.rb +0 -61
  147. data/lib/selenium/webdriver/common/html5/location.rb +0 -19
  148. data/lib/selenium/webdriver/common/w3c_error.rb +0 -194
  149. data/lib/selenium/webdriver/edge/legacy_support.rb +0 -117
  150. data/lib/selenium/webdriver/firefox/bridge.rb +0 -89
  151. data/lib/selenium/webdriver/ie/bridge.rb +0 -88
  152. data/lib/selenium/webdriver/ie/server.rb +0 -133
  153. data/lib/selenium/webdriver/iphone/bridge.rb +0 -64
  154. data/lib/selenium/webdriver/phantomjs/bridge.rb +0 -78
  155. data/lib/selenium/webdriver/phantomjs/service.rb +0 -130
  156. data/lib/selenium/webdriver/remote/commands.rb +0 -211
  157. data/lib/selenium/webdriver/remote/w3c_bridge.rb +0 -668
  158. data/lib/selenium/webdriver/remote/w3c_capabilities.rb +0 -236
  159. data/lib/selenium/webdriver/remote/w3c_commands.rb +0 -132
  160. data/lib/selenium/webdriver/safari/resources/client.js +0 -7255
  161. data/lib/selenium/webdriver/safari/server.rb +0 -187
  162. data/lib/selenium-client.rb +0 -21
@@ -1,78 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- module Selenium
21
- module WebDriver
22
- module PhantomJS
23
-
24
-
25
- # @api private
26
- class Bridge < Remote::Bridge
27
-
28
- def initialize(opts = {})
29
- http_client = opts.delete(:http_client)
30
- caps = opts.delete(:desired_capabilities) { Remote::Capabilities.phantomjs }
31
-
32
- if opts.has_key?(:url)
33
- url = opts.delete(:url)
34
- else
35
- args = opts.delete(:args) || caps['phantomjs.cli.args']
36
- port = opts.delete(:port)
37
-
38
- @service = Service.default_service(port)
39
- @service.start(args)
40
-
41
- url = @service.uri
42
- end
43
-
44
- remote_opts = {
45
- :url => url,
46
- :desired_capabilities => caps
47
- }
48
-
49
- remote_opts.merge!(:http_client => http_client) if http_client
50
-
51
- super(remote_opts)
52
- end
53
-
54
- def browser
55
- :phantomjs
56
- end
57
-
58
- def driver_extensions
59
- [
60
- DriverExtensions::TakesScreenshot,
61
- DriverExtensions::HasInputDevices
62
- ]
63
- end
64
-
65
- def capabilities
66
- @capabilities ||= Remote::Capabilities.phantomjs
67
- end
68
-
69
- def quit
70
- super
71
- ensure
72
- @service.stop if @service
73
- end
74
-
75
- end # Bridge
76
- end # PhantomJS
77
- end # WebDriver
78
- end # Selenium
@@ -1,130 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- module Selenium
21
- module WebDriver
22
- module PhantomJS
23
-
24
- #
25
- # @api private
26
- #
27
-
28
- class Service
29
- START_TIMEOUT = 20
30
- SOCKET_LOCK_TIMEOUT = 45
31
- STOP_TIMEOUT = 5
32
- DEFAULT_PORT = 8910
33
- MISSING_TEXT = "Unable to find phantomjs executable."
34
-
35
- def self.executable_path
36
- @executable_path ||= (
37
- path = PhantomJS.path
38
- path or raise Error::WebDriverError, MISSING_TEXT
39
- Platform.assert_executable path
40
-
41
- path
42
- )
43
- end
44
-
45
- def self.default_service(port = nil)
46
- new executable_path, DEFAULT_PORT
47
- end
48
-
49
- def initialize(executable_path, port)
50
- @host = Platform.localhost
51
- @executable = executable_path
52
- @port = Integer(port)
53
- end
54
-
55
- def start(args = [])
56
- if @process && @process.alive?
57
- raise "already started: #{uri.inspect} #{@executable.inspect}"
58
- end
59
-
60
- Platform.exit_hook { stop } # make sure we don't leave the server running
61
-
62
- socket_lock.locked do
63
- find_free_port
64
- start_process(args)
65
- connect_until_stable
66
- end
67
- end
68
-
69
- def stop
70
- return if @process.nil? || @process.exited?
71
-
72
- Net::HTTP.start(@host, @port) do |http|
73
- http.open_timeout = STOP_TIMEOUT / 2
74
- http.read_timeout = STOP_TIMEOUT / 2
75
-
76
- http.get("/shutdown")
77
- end
78
- ensure
79
- stop_process
80
- if Platform.jruby? && !$DEBUG
81
- @process.io.close rescue nil
82
- end
83
- end
84
-
85
- def find_free_port
86
- @port = PortProber.above @port
87
- end
88
-
89
- def uri
90
- URI.parse "http://#{@host}:#{@port}"
91
- end
92
-
93
- private
94
-
95
- def start_process(args)
96
- server_command = [@executable, "--webdriver=#{@port}", *args]
97
- @process = ChildProcess.build(*server_command.compact)
98
-
99
- if $DEBUG == true
100
- @process.io.inherit!
101
- elsif Platform.jruby?
102
- # apparently we need to read the output for phantomjs to work on jruby
103
- @process.io.stdout = @process.io.stderr = File.new(Platform.null_device, 'w')
104
- end
105
-
106
- @process.start
107
- end
108
-
109
- def stop_process
110
- @process.poll_for_exit STOP_TIMEOUT
111
- rescue ChildProcess::TimeoutError
112
- @process.stop STOP_TIMEOUT
113
- end
114
-
115
- def connect_until_stable
116
- socket_poller = SocketPoller.new @host, @port, START_TIMEOUT
117
-
118
- unless socket_poller.connected?
119
- raise Error::WebDriverError, "unable to connect to phantomjs @ #{uri} after #{START_TIMEOUT} seconds"
120
- end
121
- end
122
-
123
- def socket_lock
124
- @socket_lock ||= SocketLock.new(@port - 1, SOCKET_LOCK_TIMEOUT)
125
- end
126
-
127
- end # Service
128
- end # PhantomJS
129
- end # WebDriver
130
- end # Service
@@ -1,211 +0,0 @@
1
- # encoding: utf-8
2
- #
3
- # Licensed to the Software Freedom Conservancy (SFC) under one
4
- # or more contributor license agreements. See the NOTICE file
5
- # distributed with this work for additional information
6
- # regarding copyright ownership. The SFC licenses this file
7
- # to you under the Apache License, Version 2.0 (the
8
- # "License"); you may not use this file except in compliance
9
- # with the License. You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing,
14
- # software distributed under the License is distributed on an
15
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
- # KIND, either express or implied. See the License for the
17
- # specific language governing permissions and limitations
18
- # under the License.
19
-
20
- class Selenium::WebDriver::Remote::Bridge
21
-
22
- #
23
- # https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#command-reference
24
- #
25
-
26
- command :newSession, :post, "session"
27
- command :getCapabilities, :get, "session/:session_id"
28
- command :status, :get, "status"
29
-
30
- #
31
- # basic driver
32
- #
33
-
34
- command :getCurrentUrl, :get, "session/:session_id/url"
35
- command :get, :post, "session/:session_id/url"
36
- command :goForward, :post, "session/:session_id/forward"
37
- command :goBack, :post, "session/:session_id/back"
38
- command :refresh, :post, "session/:session_id/refresh"
39
- command :quit, :delete, "session/:session_id"
40
- command :close, :delete, "session/:session_id/window"
41
- command :getPageSource, :get, "session/:session_id/source"
42
- command :getTitle, :get, "session/:session_id/title"
43
- command :findElement, :post, "session/:session_id/element"
44
- command :findElements, :post, "session/:session_id/elements"
45
- command :getActiveElement, :post, "session/:session_id/element/active"
46
-
47
- #
48
- # window handling
49
- #
50
-
51
- command :getCurrentWindowHandle, :get, "session/:session_id/window_handle"
52
- command :getWindowHandles, :get, "session/:session_id/window_handles"
53
- command :setWindowSize, :post, "session/:session_id/window/:window_handle/size"
54
- command :setWindowPosition, :post, "session/:session_id/window/:window_handle/position"
55
- command :getWindowSize, :get, "session/:session_id/window/:window_handle/size"
56
- command :getWindowPosition, :get, "session/:session_id/window/:window_handle/position"
57
- command :maximizeWindow, :post, "session/:session_id/window/:window_handle/maximize"
58
-
59
- #
60
- # script execution
61
- #
62
-
63
- command :executeScript, :post, "session/:session_id/execute"
64
- command :executeAsyncScript, :post, "session/:session_id/execute_async"
65
-
66
- #
67
- # screenshot
68
- #
69
-
70
- command :screenshot, :get, "session/:session_id/screenshot"
71
-
72
- #
73
- # alerts
74
- #
75
-
76
- command :dismissAlert, :post, "session/:session_id/dismiss_alert"
77
- command :acceptAlert, :post, "session/:session_id/accept_alert"
78
- command :getAlertText, :get, "session/:session_id/alert_text"
79
- command :setAlertValue, :post, "session/:session_id/alert_text"
80
- command :setAuthentication, :post, "session/:session_id/alert/credentials"
81
-
82
- #
83
- # target locator
84
- #
85
-
86
- command :switchToFrame, :post, "session/:session_id/frame"
87
- command :switchToParentFrame, :post, "session/:session_id/frame/parent"
88
- command :switchToWindow, :post, "session/:session_id/window"
89
-
90
- #
91
- # options
92
- #
93
-
94
- command :getCookies, :get, "session/:session_id/cookie"
95
- command :addCookie, :post, "session/:session_id/cookie"
96
- command :deleteAllCookies, :delete, "session/:session_id/cookie"
97
- command :deleteCookie, :delete, "session/:session_id/cookie/:name"
98
-
99
- #
100
- # timeouts
101
- #
102
-
103
- command :implicitlyWait, :post, "session/:session_id/timeouts/implicit_wait"
104
- command :setScriptTimeout, :post, "session/:session_id/timeouts/async_script"
105
- command :setTimeout, :post, "session/:session_id/timeouts"
106
-
107
- #
108
- # element
109
- #
110
-
111
- command :describeElement, :get, "session/:session_id/element/:id"
112
- command :findChildElement, :post, "session/:session_id/element/:id/element"
113
- command :findChildElements, :post, "session/:session_id/element/:id/elements"
114
- command :clickElement, :post, "session/:session_id/element/:id/click"
115
- command :submitElement, :post, "session/:session_id/element/:id/submit"
116
- command :getElementValue, :get, "session/:session_id/element/:id/value"
117
- command :sendKeysToElement, :post, "session/:session_id/element/:id/value"
118
- command :uploadFile, :post, "session/:session_id/file"
119
- command :getElementTagName, :get, "session/:session_id/element/:id/name"
120
- command :clearElement, :post, "session/:session_id/element/:id/clear"
121
- command :isElementSelected, :get, "session/:session_id/element/:id/selected"
122
- command :isElementEnabled, :get, "session/:session_id/element/:id/enabled"
123
- command :getElementAttribute, :get, "session/:session_id/element/:id/attribute/:name"
124
- command :elementEquals, :get, "session/:session_id/element/:id/equals/:other"
125
- command :isElementDisplayed, :get, "session/:session_id/element/:id/displayed"
126
- command :getElementLocation, :get, "session/:session_id/element/:id/location"
127
- command :getElementLocationOnceScrolledIntoView, :get, "session/:session_id/element/:id/location_in_view"
128
- command :getElementSize, :get, "session/:session_id/element/:id/size"
129
- command :dragElement, :post, "session/:session_id/element/:id/drag"
130
- command :getElementValueOfCssProperty, :get, "session/:session_id/element/:id/css/:property_name"
131
- command :getElementText, :get, "session/:session_id/element/:id/text"
132
-
133
- #
134
- # rotatable
135
- #
136
-
137
- command :getScreenOrientation, :get, "session/:session_id/orientation"
138
- command :setScreenOrientation, :post, "session/:session_id/orientation"
139
-
140
- #
141
- # interactions API
142
- #
143
-
144
- command :click, :post, "session/:session_id/click"
145
- command :doubleClick, :post, "session/:session_id/doubleclick"
146
- command :mouseDown, :post, "session/:session_id/buttondown"
147
- command :mouseUp, :post, "session/:session_id/buttonup"
148
- command :mouseMoveTo, :post, "session/:session_id/moveto"
149
- command :sendModifierKeyToActiveElement, :post, "session/:session_id/modifier"
150
- command :sendKeysToActiveElement, :post, "session/:session_id/keys"
151
-
152
- #
153
- # html 5
154
- #
155
-
156
- command :executeSql, :post, "session/:session_id/execute_sql"
157
-
158
- command :getLocation, :get, "session/:session_id/location"
159
- command :setLocation, :post, "session/:session_id/location"
160
-
161
- command :getAppCache, :get, "session/:session_id/application_cache"
162
- command :getAppCacheStatus, :get, "session/:session_id/application_cache/status"
163
- command :clearAppCache, :delete, "session/:session_id/application_cache/clear"
164
-
165
- command :getNetworkConnection, :get, "session/:session_id/network_connection"
166
- command :setNetworkConnection, :post, "session/:session_id/network_connection"
167
-
168
- command :getLocalStorageItem, :get, "session/:session_id/local_storage/key/:key"
169
- command :removeLocalStorageItem, :delete, "session/:session_id/local_storage/key/:key"
170
- command :getLocalStorageKeys, :get, "session/:session_id/local_storage"
171
- command :setLocalStorageItem, :post, "session/:session_id/local_storage"
172
- command :clearLocalStorage, :delete, "session/:session_id/local_storage"
173
- command :getLocalStorageSize, :get, "session/:session_id/local_storage/size"
174
-
175
- command :getSessionStorageItem, :get, "session/:session_id/session_storage/key/:key"
176
- command :removeSessionStorageItem, :delete, "session/:session_id/session_storage/key/:key"
177
- command :getSessionStorageKeys, :get, "session/:session_id/session_storage"
178
- command :setSessionStorageItem, :post, "session/:session_id/session_storage"
179
- command :clearSessionStorage, :delete, "session/:session_id/session_storage"
180
- command :getSessionStorageSize, :get, "session/:session_id/session_storage/size"
181
-
182
- #
183
- # ime
184
- #
185
-
186
- command :imeGetAvailableEngines, :get, "session/:session_id/ime/available_engines"
187
- command :imeGetActiveEngine, :get, "session/:session_id/ime/active_engine"
188
- command :imeIsActivated, :get, "session/:session_id/ime/activated"
189
- command :imeDeactivate, :post, "session/:session_id/ime/deactivate"
190
- command :imeActivateEngine, :post, "session/:session_id/ime/activate"
191
-
192
- #
193
- # touch
194
- #
195
-
196
- command :touchSingleTap, :post, "session/:session_id/touch/click"
197
- command :touchDoubleTap, :post, "session/:session_id/touch/doubleclick"
198
- command :touchLongPress, :post, "session/:session_id/touch/longclick"
199
- command :touchDown, :post, "session/:session_id/touch/down"
200
- command :touchUp, :post, "session/:session_id/touch/up"
201
- command :touchMove, :post, "session/:session_id/touch/move"
202
- command :touchScroll, :post, "session/:session_id/touch/scroll"
203
- command :touchFlick, :post, "session/:session_id/touch/flick"
204
-
205
- #
206
- # logs
207
- #
208
-
209
- command :getAvailableLogTypes, :get, "session/:session_id/log/types"
210
- command :getLog, :post, "session/:session_id/log"
211
- end