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.
- checksums.yaml +7 -0
- data/CHANGES +665 -8
- data/Gemfile +2 -0
- data/LICENSE +1 -1
- data/README.md +2 -3
- data/lib/selenium/server.rb +76 -73
- data/lib/selenium/webdriver/atoms/getAttribute.js +7 -0
- data/lib/selenium/webdriver/atoms/isDisplayed.js +102 -0
- data/lib/selenium/webdriver/{phantomjs.rb → atoms.rb} +10 -14
- data/lib/selenium/webdriver/chrome/bridge.rb +30 -101
- data/lib/selenium/webdriver/chrome/driver.rb +127 -0
- data/lib/selenium/webdriver/chrome/options.rb +190 -0
- data/lib/selenium/webdriver/chrome/profile.rb +21 -20
- data/lib/selenium/webdriver/chrome/service.rb +26 -93
- data/lib/selenium/webdriver/chrome.rb +15 -6
- data/lib/selenium/webdriver/common/action_builder.rb +52 -58
- data/lib/selenium/webdriver/common/alert.rb +7 -15
- data/lib/selenium/webdriver/common/bridge_helper.rb +18 -22
- data/lib/selenium/webdriver/common/driver.rb +72 -72
- data/lib/selenium/webdriver/common/driver_extensions/downloads_files.rb +45 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_addons.rb +50 -0
- data/lib/selenium/webdriver/common/driver_extensions/{has_input_devices.rb → has_debugger.rb} +11 -27
- data/lib/selenium/webdriver/common/driver_extensions/has_location.rb +6 -10
- data/lib/selenium/webdriver/common/driver_extensions/has_network_conditions.rb +51 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +7 -8
- data/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb +51 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +2 -4
- data/lib/selenium/webdriver/common/driver_extensions/has_session_id.rb +2 -4
- data/lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb +3 -5
- data/lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb +2 -5
- data/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +6 -9
- data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +9 -7
- data/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb +3 -8
- data/lib/selenium/webdriver/common/element.rb +59 -39
- data/lib/selenium/webdriver/common/error.rb +259 -104
- data/lib/selenium/webdriver/common/file_reaper.rb +6 -14
- data/lib/selenium/webdriver/common/html5/local_storage.rb +8 -10
- data/lib/selenium/webdriver/common/html5/session_storage.rb +8 -10
- data/lib/selenium/webdriver/common/html5/shared_web_storage.rb +8 -16
- data/lib/selenium/webdriver/common/interactions/input_device.rb +54 -0
- data/lib/selenium/webdriver/common/interactions/interaction.rb +53 -0
- data/lib/selenium/webdriver/{safari/browser.rb → common/interactions/interactions.rb} +17 -14
- data/lib/selenium/webdriver/common/interactions/key_actions.rb +145 -0
- data/lib/selenium/webdriver/common/interactions/key_input.rb +66 -0
- data/lib/selenium/webdriver/{android.rb → common/interactions/none_input.rb} +14 -6
- data/lib/selenium/webdriver/common/interactions/pointer_actions.rb +363 -0
- data/lib/selenium/webdriver/common/interactions/pointer_input.rb +139 -0
- data/lib/selenium/webdriver/common/keyboard.rb +10 -14
- data/lib/selenium/webdriver/common/keys.rb +102 -82
- data/lib/selenium/webdriver/common/log_entry.rb +7 -8
- data/lib/selenium/webdriver/common/logger.rb +115 -0
- data/lib/selenium/webdriver/common/logs.rb +4 -6
- data/lib/selenium/webdriver/common/manager.rb +177 -0
- data/lib/selenium/webdriver/common/mouse.rb +12 -14
- data/lib/selenium/webdriver/common/navigation.rb +4 -6
- data/lib/selenium/webdriver/common/options.rb +26 -127
- data/lib/selenium/webdriver/common/platform.rb +75 -101
- data/lib/selenium/webdriver/common/port_prober.rb +7 -19
- data/lib/selenium/webdriver/common/profile_helper.rb +8 -11
- data/lib/selenium/webdriver/common/proxy.rb +68 -74
- data/lib/selenium/webdriver/common/search_context.rb +28 -37
- data/lib/selenium/webdriver/common/service.rb +219 -0
- data/lib/selenium/webdriver/common/socket_lock.rb +15 -16
- data/lib/selenium/webdriver/common/socket_poller.rb +30 -28
- data/lib/selenium/webdriver/common/target_locator.rb +16 -18
- data/lib/selenium/webdriver/common/timeouts.rb +6 -8
- data/lib/selenium/webdriver/common/touch_action_builder.rb +5 -10
- data/lib/selenium/webdriver/common/touch_screen.rb +22 -23
- data/lib/selenium/webdriver/common/w3c_action_builder.rb +212 -0
- data/lib/selenium/webdriver/common/w3c_manager.rb +45 -0
- data/lib/selenium/webdriver/common/wait.rb +17 -16
- data/lib/selenium/webdriver/common/window.rb +50 -17
- data/lib/selenium/webdriver/common/zipper.rb +9 -13
- data/lib/selenium/webdriver/common.rb +21 -7
- data/lib/selenium/webdriver/edge/bridge.rb +34 -63
- data/lib/selenium/webdriver/edge/driver.rb +66 -0
- data/lib/selenium/webdriver/edge/options.rb +80 -0
- data/lib/selenium/webdriver/edge/service.rb +23 -95
- data/lib/selenium/webdriver/edge.rb +13 -13
- data/lib/selenium/webdriver/firefox/binary.rb +45 -60
- data/lib/selenium/webdriver/firefox/driver.rb +50 -0
- data/lib/selenium/webdriver/firefox/extension/prefs.json +3 -12
- data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
- data/lib/selenium/webdriver/firefox/extension.rb +20 -10
- data/lib/selenium/webdriver/firefox/launcher.rb +16 -22
- data/lib/selenium/webdriver/firefox/legacy/driver.rb +83 -0
- data/lib/selenium/webdriver/firefox/marionette/bridge.rb +49 -0
- data/lib/selenium/webdriver/firefox/marionette/driver.rb +90 -0
- data/lib/selenium/webdriver/firefox/options.rb +162 -0
- data/lib/selenium/webdriver/firefox/profile.rb +47 -48
- data/lib/selenium/webdriver/firefox/profiles_ini.rb +11 -18
- data/lib/selenium/webdriver/firefox/service.rb +24 -95
- data/lib/selenium/webdriver/firefox/util.rb +2 -4
- data/lib/selenium/webdriver/firefox.rb +27 -12
- data/lib/selenium/webdriver/ie/driver.rb +85 -0
- data/lib/selenium/webdriver/ie/options.rb +138 -0
- data/lib/selenium/webdriver/ie/service.rb +54 -0
- data/lib/selenium/webdriver/ie.rb +12 -10
- data/lib/selenium/webdriver/remote/bridge.rb +100 -564
- data/lib/selenium/webdriver/remote/capabilities.rb +98 -100
- data/lib/selenium/webdriver/remote/driver.rb +51 -0
- data/lib/selenium/webdriver/remote/http/common.rb +34 -22
- data/lib/selenium/webdriver/remote/http/curb.rb +13 -14
- data/lib/selenium/webdriver/remote/http/default.rb +62 -43
- data/lib/selenium/webdriver/remote/http/persistent.rb +12 -9
- data/lib/selenium/webdriver/remote/oss/bridge.rb +594 -0
- data/lib/selenium/webdriver/remote/oss/commands.rb +223 -0
- data/lib/selenium/webdriver/remote/response.rb +48 -28
- data/lib/selenium/webdriver/remote/server_error.rb +3 -5
- data/lib/selenium/webdriver/remote/w3c/bridge.rb +605 -0
- data/lib/selenium/webdriver/remote/w3c/capabilities.rb +310 -0
- data/lib/selenium/webdriver/remote/w3c/commands.rb +157 -0
- data/lib/selenium/webdriver/remote.rb +10 -16
- data/lib/selenium/webdriver/safari/bridge.rb +17 -101
- data/lib/selenium/webdriver/{firefox/w3c_bridge.rb → safari/driver.rb} +27 -25
- data/lib/selenium/webdriver/safari/options.rb +29 -31
- data/lib/selenium/webdriver/safari/service.rb +38 -0
- data/lib/selenium/webdriver/safari.rb +27 -27
- data/lib/selenium/webdriver/support/abstract_event_listener.rb +19 -4
- data/lib/selenium/webdriver/support/block_event_listener.rb +3 -5
- data/lib/selenium/webdriver/support/color.rb +60 -43
- data/lib/selenium/webdriver/support/escaper.rb +43 -0
- data/lib/selenium/webdriver/support/event_firing_bridge.rb +39 -41
- data/lib/selenium/webdriver/support/select.rb +45 -97
- data/lib/selenium/webdriver/support.rb +3 -2
- data/lib/selenium/webdriver/{iphone.rb → version.rb} +3 -7
- data/lib/selenium/webdriver.rb +36 -23
- data/lib/selenium-webdriver.rb +2 -2
- data/selenium-webdriver.gemspec +42 -29
- metadata +331 -262
- data/lib/selenium/client/base.rb +0 -151
- data/lib/selenium/client/driver.rb +0 -29
- data/lib/selenium/client/errors.rb +0 -28
- data/lib/selenium/client/extensions.rb +0 -132
- data/lib/selenium/client/idiomatic.rb +0 -507
- data/lib/selenium/client/javascript_expression_builder.rb +0 -135
- data/lib/selenium/client/javascript_frameworks/jquery.rb +0 -32
- data/lib/selenium/client/javascript_frameworks/prototype.rb +0 -32
- data/lib/selenium/client/legacy_driver.rb +0 -1722
- data/lib/selenium/client/protocol.rb +0 -123
- data/lib/selenium/client/selenium_helper.rb +0 -49
- data/lib/selenium/client.rb +0 -57
- data/lib/selenium/rake/server_task.rb +0 -176
- data/lib/selenium/webdriver/android/bridge.rb +0 -68
- data/lib/selenium/webdriver/common/core_ext/base64.rb +0 -28
- data/lib/selenium/webdriver/common/core_ext/dir.rb +0 -61
- data/lib/selenium/webdriver/common/html5/location.rb +0 -19
- data/lib/selenium/webdriver/common/w3c_error.rb +0 -194
- data/lib/selenium/webdriver/edge/legacy_support.rb +0 -117
- data/lib/selenium/webdriver/firefox/bridge.rb +0 -89
- data/lib/selenium/webdriver/ie/bridge.rb +0 -88
- data/lib/selenium/webdriver/ie/server.rb +0 -133
- data/lib/selenium/webdriver/iphone/bridge.rb +0 -64
- data/lib/selenium/webdriver/phantomjs/bridge.rb +0 -78
- data/lib/selenium/webdriver/phantomjs/service.rb +0 -130
- data/lib/selenium/webdriver/remote/commands.rb +0 -211
- data/lib/selenium/webdriver/remote/w3c_bridge.rb +0 -668
- data/lib/selenium/webdriver/remote/w3c_capabilities.rb +0 -236
- data/lib/selenium/webdriver/remote/w3c_commands.rb +0 -132
- data/lib/selenium/webdriver/safari/resources/client.js +0 -7255
- data/lib/selenium/webdriver/safari/server.rb +0 -187
- data/lib/selenium-client.rb +0 -21
@@ -1,236 +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 Remote
|
23
|
-
#
|
24
|
-
# Specification of the desired and/or actual capabilities of the browser that the
|
25
|
-
# server is being asked to create.
|
26
|
-
#
|
27
|
-
class W3CCapabilities
|
28
|
-
|
29
|
-
DEFAULTS = {
|
30
|
-
:browser_name => '',
|
31
|
-
:browser_version => :any,
|
32
|
-
:platform_name => :any,
|
33
|
-
:platform_version => :any,
|
34
|
-
:accept_ssl_certs => false,
|
35
|
-
:page_load_strategy => 'normal',
|
36
|
-
:proxy => nil
|
37
|
-
}
|
38
|
-
|
39
|
-
KNOWN = [
|
40
|
-
:remote_session_id,
|
41
|
-
:xul_app_id,
|
42
|
-
:raise_accessibility_exceptions,
|
43
|
-
:rotatable,
|
44
|
-
:app_build_id,
|
45
|
-
:device
|
46
|
-
]
|
47
|
-
|
48
|
-
(DEFAULTS.keys + KNOWN).each do |key|
|
49
|
-
define_method key do
|
50
|
-
@capabilities.fetch(key)
|
51
|
-
end
|
52
|
-
|
53
|
-
define_method "#{key}=" do |value|
|
54
|
-
@capabilities[key] = value
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
# Backward compatibility
|
60
|
-
#
|
61
|
-
|
62
|
-
alias_method :version, :browser_version
|
63
|
-
alias_method :version=, :browser_version=
|
64
|
-
alias_method :platform, :platform_name
|
65
|
-
alias_method :platform=, :platform_name=
|
66
|
-
|
67
|
-
#
|
68
|
-
# Convenience methods for the common choices.
|
69
|
-
#
|
70
|
-
|
71
|
-
class << self
|
72
|
-
|
73
|
-
def edge(opts = {})
|
74
|
-
new({
|
75
|
-
:browser_name => "MicrosoftEdge",
|
76
|
-
:platform => :windows,
|
77
|
-
}.merge(opts))
|
78
|
-
end
|
79
|
-
|
80
|
-
def firefox(opts = {})
|
81
|
-
opts[:browser_version] = opts.delete :version
|
82
|
-
opts[:platform_name] = opts.delete :platform
|
83
|
-
|
84
|
-
new({
|
85
|
-
:browser_name => "firefox",
|
86
|
-
:marionette => true
|
87
|
-
}.merge(opts))
|
88
|
-
end
|
89
|
-
|
90
|
-
alias_method :ff, :firefox
|
91
|
-
|
92
|
-
def w3c?(opts = {})
|
93
|
-
opts[:desired_capabilities].is_a?(W3CCapabilities) || opts[:marionette]
|
94
|
-
end
|
95
|
-
|
96
|
-
#
|
97
|
-
# @api private
|
98
|
-
#
|
99
|
-
|
100
|
-
def json_create(data)
|
101
|
-
data = data.dup
|
102
|
-
|
103
|
-
# Convert due to Remote Driver implementation
|
104
|
-
data["browserVersion"] = data.delete("version") if data.key? "version"
|
105
|
-
data["platformName"] = data.delete("platform") if data.key? "platform"
|
106
|
-
|
107
|
-
caps = new
|
108
|
-
caps.browser_name = data.delete("browserName") if data.key? "browserName"
|
109
|
-
caps.browser_version = data.delete("browserVersion") if data.key? "browserVersion"
|
110
|
-
caps.platform_name = data.delete("platformName") if data.key? "platformName"
|
111
|
-
caps.platform_version = data.delete("platformVersion") if data.key? "platformVersion"
|
112
|
-
caps.accept_ssl_certs = data.delete("acceptSslCerts") if data.key? "acceptSslCerts"
|
113
|
-
caps.page_load_strategy = data.delete("pageLoadStrategy") if data.key? "pageloadStrategy"
|
114
|
-
proxy = data.delete('proxy')
|
115
|
-
caps.proxy = Proxy.json_create(proxy) unless proxy.nil? || proxy.empty?
|
116
|
-
|
117
|
-
# Remote Server Specific
|
118
|
-
caps[:remote_session_id] = data.delete('webdriver.remote.sessionid')
|
119
|
-
|
120
|
-
# Obsolete capabilities returned by Remote Server
|
121
|
-
data.delete("javascriptEnabled")
|
122
|
-
data.delete('cssSelectorsEnabled')
|
123
|
-
|
124
|
-
# Marionette Specific
|
125
|
-
caps[:xul_app_id] = data.delete("XULappId")
|
126
|
-
caps[:raise_accessibility_exceptions] = data.delete('raisesAccessibilityExceptions')
|
127
|
-
caps[:rotatable] = data.delete('rotatable')
|
128
|
-
caps[:app_build_id] = data.delete('appBuildId')
|
129
|
-
caps[:device] = data.delete('device')
|
130
|
-
|
131
|
-
# any remaining pairs will be added as is, with no conversion
|
132
|
-
caps.merge!(data)
|
133
|
-
caps
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
# @param [Hash] opts
|
138
|
-
# @option :browser_name [String] required browser name
|
139
|
-
# @option :browser_version [String] required browser version number
|
140
|
-
# @option :platform_name [Symbol] one of :any, :win, :mac, or :x
|
141
|
-
# @option :platform_version [String] required platform version number
|
142
|
-
# @option :accept_ssl_certs [Boolean] does the driver accept SSL Cerfifications?
|
143
|
-
# @option :proxy [Selenium::WebDriver::Proxy, Hash] proxy configuration
|
144
|
-
#
|
145
|
-
# @api public
|
146
|
-
#
|
147
|
-
|
148
|
-
def initialize(opts = {})
|
149
|
-
@capabilities = DEFAULTS.merge(opts)
|
150
|
-
self.proxy = opts.delete(:proxy)
|
151
|
-
end
|
152
|
-
|
153
|
-
#
|
154
|
-
# Allows setting arbitrary capabilities.
|
155
|
-
#
|
156
|
-
|
157
|
-
def []=(key, value)
|
158
|
-
@capabilities[key] = value
|
159
|
-
end
|
160
|
-
|
161
|
-
def [](key)
|
162
|
-
@capabilities[key]
|
163
|
-
end
|
164
|
-
|
165
|
-
def merge!(other)
|
166
|
-
if other.respond_to?(:capabilities, true) && other.capabilities.kind_of?(Hash)
|
167
|
-
@capabilities.merge! other.capabilities
|
168
|
-
elsif other.kind_of? Hash
|
169
|
-
@capabilities.merge! other
|
170
|
-
else
|
171
|
-
raise ArgumentError, "argument should be a Hash or implement #capabilities"
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
def proxy=(proxy)
|
176
|
-
case proxy
|
177
|
-
when Hash
|
178
|
-
@capabilities[:proxy] = Proxy.new(proxy)
|
179
|
-
when Proxy, nil
|
180
|
-
@capabilities[:proxy] = proxy
|
181
|
-
else
|
182
|
-
raise TypeError, "expected Hash or #{Proxy.name}, got #{proxy.inspect}:#{proxy.class}"
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
# @api private
|
187
|
-
#
|
188
|
-
|
189
|
-
def as_json(opts = nil)
|
190
|
-
hash = {}
|
191
|
-
|
192
|
-
@capabilities.each do |key, value|
|
193
|
-
case key
|
194
|
-
when :platform
|
195
|
-
hash['platform'] = value.to_s.upcase
|
196
|
-
when :proxy
|
197
|
-
hash['proxy'] = value.as_json if value
|
198
|
-
when String, :firefox_binary
|
199
|
-
hash[key.to_s] = value
|
200
|
-
when Symbol
|
201
|
-
hash[camel_case(key.to_s)] = value
|
202
|
-
else
|
203
|
-
raise TypeError, "expected String or Symbol, got #{key.inspect}:#{key.class} / #{value.inspect}"
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
hash
|
208
|
-
end
|
209
|
-
|
210
|
-
def to_json(*args)
|
211
|
-
JSON.generate as_json
|
212
|
-
end
|
213
|
-
|
214
|
-
def ==(other)
|
215
|
-
return false unless other.kind_of? self.class
|
216
|
-
as_json == other.as_json
|
217
|
-
end
|
218
|
-
|
219
|
-
alias_method :eql?, :==
|
220
|
-
|
221
|
-
protected
|
222
|
-
|
223
|
-
def capabilities
|
224
|
-
@capabilities
|
225
|
-
end
|
226
|
-
|
227
|
-
private
|
228
|
-
|
229
|
-
def camel_case(str)
|
230
|
-
str.gsub(/_([a-z])/) { $1.upcase }
|
231
|
-
end
|
232
|
-
|
233
|
-
end # W3CCapabilities
|
234
|
-
end # Remote
|
235
|
-
end # WebDriver
|
236
|
-
end # Selenium
|
@@ -1,132 +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::W3CBridge
|
21
|
-
|
22
|
-
#
|
23
|
-
# http://www.w3.org/TR/2015/WD-webdriver-20150918/#list-of-endpoints
|
24
|
-
#
|
25
|
-
|
26
|
-
#
|
27
|
-
# session handling
|
28
|
-
#
|
29
|
-
|
30
|
-
command :newSession, :post, "session"
|
31
|
-
command :deleteSession, :delete, "session/:session_id"
|
32
|
-
|
33
|
-
|
34
|
-
#
|
35
|
-
# basic driver
|
36
|
-
#
|
37
|
-
|
38
|
-
command :get, :post, "session/:session_id/url"
|
39
|
-
command :getCurrentUrl, :get, "session/:session_id/url"
|
40
|
-
command :back, :post, "session/:session_id/back"
|
41
|
-
command :forward, :post, "session/:session_id/forward"
|
42
|
-
command :refresh, :post, "session/:session_id/refresh"
|
43
|
-
command :getTitle, :get, "session/:session_id/title"
|
44
|
-
|
45
|
-
#
|
46
|
-
# window and Frame handling
|
47
|
-
#
|
48
|
-
|
49
|
-
command :getWindowHandle, :get, "session/:session_id/window"
|
50
|
-
command :closeWindow, :delete, "session/:session_id/window"
|
51
|
-
command :switchToWindow, :post, "session/:session_id/window"
|
52
|
-
command :getWindowHandles, :get, "session/:session_id/window/handles"
|
53
|
-
command :fullscreenWindow, :post, "session/:session_id/window/fullscreen"
|
54
|
-
command :maximizeWindow, :post, "session/:session_id/window/maximize"
|
55
|
-
command :setWindowSize, :post, "session/:session_id/window/size"
|
56
|
-
command :getWindowSize, :get, "session/:session_id/window/size"
|
57
|
-
command :switchToFrame, :post, "session/:session_id/frame"
|
58
|
-
command :switchToParentFrame, :post, "session/:session_id/frame/parent"
|
59
|
-
|
60
|
-
#
|
61
|
-
# element
|
62
|
-
#
|
63
|
-
|
64
|
-
command :findElement, :post, "session/:session_id/element"
|
65
|
-
command :findElements, :post, "session/:session_id/elements"
|
66
|
-
command :findChildElement, :post, "session/:session_id/element/:id/element"
|
67
|
-
command :findChildElements, :post, "session/:session_id/element/:id/elements"
|
68
|
-
command :getActiveElement, :get, "session/:session_id/element/active"
|
69
|
-
command :isElementSelected, :get, "session/:session_id/element/:id/selected"
|
70
|
-
command :getElementAttribute, :get, "session/:session_id/element/:id/attribute/:name"
|
71
|
-
command :getElementProperty, :get, "session/:session_id/element/:id/property/:name"
|
72
|
-
command :getElementCssValue, :get, "session/:session_id/element/:id/css/:property_name"
|
73
|
-
command :getElementText, :get, "session/:session_id/element/:id/text"
|
74
|
-
command :getElementTagName, :get, "session/:session_id/element/:id/name"
|
75
|
-
command :getElementRect, :get, "session/:session_id/element/:id/rect"
|
76
|
-
command :isElementEnabled, :get, "session/:session_id/element/:id/enabled"
|
77
|
-
|
78
|
-
#
|
79
|
-
# script execution
|
80
|
-
#
|
81
|
-
|
82
|
-
command :executeScript, :post, "session/:session_id/execute/sync"
|
83
|
-
command :executeAsyncScript, :post, "session/:session_id/execute/async"
|
84
|
-
|
85
|
-
#
|
86
|
-
# cookies
|
87
|
-
#
|
88
|
-
|
89
|
-
command :getAllCookies, :get, "session/:session_id/cookie"
|
90
|
-
command :getCookie, :get, "session/:session_id/cookie/:name"
|
91
|
-
command :addCookie, :post, "session/:session_id/cookie"
|
92
|
-
command :deleteCookie, :delete, "session/:session_id/cookie/:name"
|
93
|
-
|
94
|
-
#
|
95
|
-
# timeouts
|
96
|
-
#
|
97
|
-
|
98
|
-
command :setTimeout, :post, "session/:session_id/timeouts"
|
99
|
-
|
100
|
-
#
|
101
|
-
# actions
|
102
|
-
#
|
103
|
-
|
104
|
-
command :actions, :post, "session/:session_id/actions"
|
105
|
-
|
106
|
-
|
107
|
-
#
|
108
|
-
# Element Operations
|
109
|
-
#
|
110
|
-
|
111
|
-
command :elementClick, :post, "session/:session_id/element/:id/click"
|
112
|
-
command :elementTap, :post, "session/:session_id/element/:id/tap"
|
113
|
-
command :elementClear, :post, "session/:session_id/element/:id/clear"
|
114
|
-
command :elementSendKeys, :post, "session/:session_id/element/:id/value"
|
115
|
-
|
116
|
-
#
|
117
|
-
# alerts
|
118
|
-
#
|
119
|
-
|
120
|
-
command :dismissAlert, :post, "session/:session_id/alert/dismiss"
|
121
|
-
command :acceptAlert, :post, "session/:session_id/alert/accept"
|
122
|
-
command :getAlertText, :get, "session/:session_id/alert/text"
|
123
|
-
command :sendAlertText, :post, "session/:session_id/alert/text"
|
124
|
-
|
125
|
-
#
|
126
|
-
# screenshot
|
127
|
-
#
|
128
|
-
|
129
|
-
command :takeScreenshot, :get, "session/:session_id/screenshot"
|
130
|
-
command :takeElementScreenshot, :get, "session/:session_id/element/:id/screenshot"
|
131
|
-
|
132
|
-
end
|