selenium-webdriver 2.45.0 → 2.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +18 -3
- data/Gemfile.lock +5 -5
- data/LICENSE +202 -0
- data/README.md +13 -8
- data/lib/selenium-client.rb +17 -0
- data/lib/selenium-webdriver.rb +17 -0
- data/lib/selenium/client.rb +17 -0
- data/lib/selenium/client/base.rb +17 -0
- data/lib/selenium/client/driver.rb +17 -0
- data/lib/selenium/client/errors.rb +17 -0
- data/lib/selenium/client/extensions.rb +1 -3
- data/lib/selenium/client/idiomatic.rb +17 -0
- data/lib/selenium/client/javascript_expression_builder.rb +17 -0
- data/lib/selenium/client/javascript_frameworks/jquery.rb +17 -0
- data/lib/selenium/client/javascript_frameworks/prototype.rb +17 -0
- data/lib/selenium/client/legacy_driver.rb +15 -15
- data/lib/selenium/client/protocol.rb +17 -0
- data/lib/selenium/client/selenium_helper.rb +18 -5
- data/lib/selenium/rake/server_task.rb +17 -0
- data/lib/selenium/server.rb +17 -0
- data/lib/selenium/webdriver.rb +18 -3
- data/lib/selenium/webdriver/android.rb +17 -0
- data/lib/selenium/webdriver/android/bridge.rb +18 -1
- data/lib/selenium/webdriver/chrome.rb +20 -3
- data/lib/selenium/webdriver/chrome/bridge.rb +17 -0
- data/lib/selenium/webdriver/chrome/profile.rb +18 -1
- data/lib/selenium/webdriver/chrome/service.rb +64 -21
- data/lib/selenium/webdriver/common.rb +19 -1
- data/lib/selenium/webdriver/common/action_builder.rb +17 -0
- data/lib/selenium/webdriver/common/alert.rb +17 -0
- data/lib/selenium/webdriver/common/bridge_helper.rb +18 -1
- data/lib/selenium/webdriver/common/core_ext/base64.rb +17 -0
- data/lib/selenium/webdriver/common/core_ext/dir.rb +17 -0
- data/lib/selenium/webdriver/common/core_ext/string.rb +17 -0
- data/lib/selenium/webdriver/common/driver.rb +18 -3
- data/lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb +17 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_location.rb +21 -4
- data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +57 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +21 -4
- data/lib/selenium/webdriver/common/driver_extensions/has_session_id.rb +17 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb +21 -4
- data/lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb +17 -0
- data/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +17 -0
- data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +17 -0
- data/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb +17 -0
- data/lib/selenium/webdriver/common/element.rb +23 -3
- data/lib/selenium/webdriver/common/error.rb +17 -0
- data/lib/selenium/webdriver/common/file_reaper.rb +17 -0
- data/lib/selenium/webdriver/common/html5/local_storage.rb +21 -4
- data/lib/selenium/webdriver/common/html5/location.rb +17 -0
- data/lib/selenium/webdriver/common/html5/session_storage.rb +21 -4
- data/lib/selenium/webdriver/common/html5/shared_web_storage.rb +22 -5
- data/lib/selenium/webdriver/common/json_helper.rb +20 -3
- data/lib/selenium/webdriver/common/keyboard.rb +17 -0
- data/lib/selenium/webdriver/common/keys.rb +16 -1
- data/lib/selenium/webdriver/common/log_entry.rb +21 -3
- data/lib/selenium/webdriver/common/logs.rb +20 -3
- data/lib/selenium/webdriver/common/mouse.rb +17 -0
- data/lib/selenium/webdriver/common/navigation.rb +17 -0
- data/lib/selenium/webdriver/common/options.rb +17 -0
- data/lib/selenium/webdriver/common/platform.rb +17 -0
- data/lib/selenium/webdriver/common/port_prober.rb +17 -0
- data/lib/selenium/webdriver/common/profile_helper.rb +17 -0
- data/lib/selenium/webdriver/common/proxy.rb +17 -0
- data/lib/selenium/webdriver/common/search_context.rb +17 -0
- data/lib/selenium/webdriver/common/socket_lock.rb +76 -0
- data/lib/selenium/webdriver/common/socket_poller.rb +17 -0
- data/lib/selenium/webdriver/common/target_locator.rb +17 -0
- data/lib/selenium/webdriver/common/timeouts.rb +17 -0
- data/lib/selenium/webdriver/common/touch_action_builder.rb +20 -3
- data/lib/selenium/webdriver/common/touch_screen.rb +20 -3
- data/lib/selenium/webdriver/common/wait.rb +17 -0
- data/lib/selenium/webdriver/common/window.rb +20 -4
- data/lib/selenium/webdriver/common/zipper.rb +17 -0
- data/lib/selenium/webdriver/firefox.rb +20 -4
- data/lib/selenium/webdriver/firefox/binary.rb +17 -0
- data/lib/selenium/webdriver/firefox/bridge.rb +18 -3
- data/lib/selenium/webdriver/firefox/extension.rb +17 -0
- data/lib/selenium/webdriver/firefox/extension/prefs.json +2 -0
- data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
- data/lib/selenium/webdriver/firefox/launcher.rb +17 -8
- data/lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so +0 -0
- data/lib/selenium/webdriver/firefox/profile.rb +17 -0
- data/lib/selenium/webdriver/firefox/profiles_ini.rb +17 -0
- data/lib/selenium/webdriver/firefox/util.rb +17 -0
- data/lib/selenium/webdriver/ie.rb +21 -3
- data/lib/selenium/webdriver/ie/bridge.rb +17 -0
- data/lib/selenium/webdriver/ie/server.rb +21 -4
- data/lib/selenium/webdriver/iphone.rb +17 -0
- data/lib/selenium/webdriver/iphone/bridge.rb +17 -0
- data/lib/selenium/webdriver/phantomjs.rb +20 -3
- data/lib/selenium/webdriver/phantomjs/bridge.rb +17 -0
- data/lib/selenium/webdriver/phantomjs/service.rb +17 -0
- data/lib/selenium/webdriver/remote.rb +20 -5
- data/lib/selenium/webdriver/remote/bridge.rb +24 -9
- data/lib/selenium/webdriver/remote/capabilities.rb +17 -9
- data/lib/selenium/webdriver/remote/commands.rb +20 -4
- data/lib/selenium/webdriver/remote/http/common.rb +18 -1
- data/lib/selenium/webdriver/remote/http/curb.rb +17 -0
- data/lib/selenium/webdriver/remote/http/default.rb +26 -4
- data/lib/selenium/webdriver/remote/http/persistent.rb +17 -0
- data/lib/selenium/webdriver/remote/response.rb +17 -0
- data/lib/selenium/webdriver/remote/server_error.rb +19 -2
- data/lib/selenium/webdriver/safari.rb +20 -3
- data/lib/selenium/webdriver/safari/bridge.rb +21 -4
- data/lib/selenium/webdriver/safari/browser.rb +21 -5
- data/lib/selenium/webdriver/safari/extensions.rb +21 -4
- data/lib/selenium/webdriver/safari/options.rb +21 -4
- data/lib/selenium/webdriver/safari/resources/SafariDriver.safariextz +0 -0
- data/lib/selenium/webdriver/safari/resources/client.js +1 -1
- data/lib/selenium/webdriver/safari/server.rb +21 -4
- data/lib/selenium/webdriver/support.rb +17 -0
- data/lib/selenium/webdriver/support/abstract_event_listener.rb +21 -4
- data/lib/selenium/webdriver/support/block_event_listener.rb +21 -4
- data/lib/selenium/webdriver/support/color.rb +22 -5
- data/lib/selenium/webdriver/support/event_firing_bridge.rb +17 -0
- data/lib/selenium/webdriver/support/select.rb +21 -4
- data/selenium-webdriver.gemspec +2 -2
- metadata +78 -78
- data/lib/selenium/webdriver/opera.rb +0 -24
- data/lib/selenium/webdriver/opera/bridge.rb +0 -112
- data/lib/selenium/webdriver/opera/service.rb +0 -49
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Remote
|
|
@@ -108,15 +125,6 @@ module Selenium
|
|
|
108
125
|
}.merge(opts))
|
|
109
126
|
end
|
|
110
127
|
|
|
111
|
-
def opera(opts = {})
|
|
112
|
-
new({
|
|
113
|
-
:browser_name => "opera",
|
|
114
|
-
:javascript_enabled => true,
|
|
115
|
-
:takes_screenshot => true,
|
|
116
|
-
:css_selectors_enabled => true
|
|
117
|
-
}.merge(opts))
|
|
118
|
-
end
|
|
119
|
-
|
|
120
128
|
def phantomjs(opts = {})
|
|
121
129
|
new({
|
|
122
130
|
:browser_name => "phantomjs",
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
2
18
|
class Selenium::WebDriver::Remote::Bridge
|
|
3
19
|
|
|
4
20
|
#
|
|
5
|
-
#
|
|
21
|
+
# https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#command-reference
|
|
6
22
|
#
|
|
7
23
|
|
|
8
24
|
command :newSession, :post, "session"
|
|
@@ -143,8 +159,8 @@ class Selenium::WebDriver::Remote::Bridge
|
|
|
143
159
|
command :getAppCacheStatus, :get, "session/:session_id/application_cache/status"
|
|
144
160
|
command :clearAppCache, :delete, "session/:session_id/application_cache/clear"
|
|
145
161
|
|
|
146
|
-
command :
|
|
147
|
-
command :
|
|
162
|
+
command :getNetworkConnection, :get, "session/:session_id/network_connection"
|
|
163
|
+
command :setNetworkConnection, :post, "session/:session_id/network_connection"
|
|
148
164
|
|
|
149
165
|
command :getLocalStorageItem, :get, "session/:session_id/local_storage/key/:key"
|
|
150
166
|
command :removeLocalStorageItem, :delete, "session/:session_id/local_storage/key/:key"
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Remote
|
|
@@ -33,7 +50,7 @@ module Selenium
|
|
|
33
50
|
puts " > #{headers.inspect}"
|
|
34
51
|
end
|
|
35
52
|
elsif verb == :post
|
|
36
|
-
payload = "{}"
|
|
53
|
+
payload = "{}"
|
|
37
54
|
headers["Content-Length"] = "2"
|
|
38
55
|
end
|
|
39
56
|
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
require 'curb'
|
|
2
19
|
|
|
3
20
|
module Selenium
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
require 'net/https'
|
|
2
19
|
require 'ipaddr'
|
|
3
20
|
|
|
@@ -32,10 +49,10 @@ module Selenium
|
|
|
32
49
|
MAX_RETRIES = 3
|
|
33
50
|
|
|
34
51
|
def request(verb, url, headers, payload, redirects = 0)
|
|
35
|
-
request = new_request_for(verb, url, headers, payload)
|
|
36
|
-
|
|
37
52
|
retries = 0
|
|
53
|
+
|
|
38
54
|
begin
|
|
55
|
+
request = new_request_for(verb, url, headers, payload)
|
|
39
56
|
response = response_for(request)
|
|
40
57
|
rescue Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EADDRINUSE
|
|
41
58
|
# a retry is sometimes needed on Windows XP where we may quickly
|
|
@@ -46,11 +63,16 @@ module Selenium
|
|
|
46
63
|
#
|
|
47
64
|
# http://msdn.microsoft.com/en-us/library/aa560610%28v=bts.20%29.aspx
|
|
48
65
|
raise if retries >= MAX_RETRIES
|
|
49
|
-
|
|
50
|
-
request = new_request_for(verb, url, headers, payload)
|
|
51
66
|
retries += 1
|
|
52
67
|
|
|
53
68
|
retry
|
|
69
|
+
rescue Errno::EADDRNOTAVAIL => ex
|
|
70
|
+
# a retry is sometimes needed when the port becomes temporarily unavailable
|
|
71
|
+
raise if retries >= MAX_RETRIES
|
|
72
|
+
retries += 1
|
|
73
|
+
sleep 2
|
|
74
|
+
retry
|
|
75
|
+
|
|
54
76
|
rescue Errno::ECONNREFUSED => ex
|
|
55
77
|
if use_proxy?
|
|
56
78
|
raise ex.class, "using proxy: #{proxy.http}"
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
require 'net/http/persistent'
|
|
2
19
|
|
|
3
20
|
module Selenium
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Remote
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Error
|
|
@@ -10,8 +27,8 @@ module Selenium
|
|
|
10
27
|
super("status code #{response.code}")
|
|
11
28
|
end
|
|
12
29
|
end
|
|
13
|
-
end
|
|
14
30
|
|
|
31
|
+
end # ServerError
|
|
15
32
|
end # Error
|
|
16
33
|
end # WebDriver
|
|
17
|
-
end # Selenium
|
|
34
|
+
end # Selenium
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
require 'websocket'
|
|
2
19
|
require 'pathname'
|
|
3
20
|
|
|
@@ -35,9 +52,9 @@ module Selenium
|
|
|
35
52
|
end
|
|
36
53
|
end
|
|
37
54
|
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
55
|
+
end # Safari
|
|
56
|
+
end # WebDriver
|
|
57
|
+
end # Selenium
|
|
41
58
|
|
|
42
59
|
require 'selenium/webdriver/safari/browser'
|
|
43
60
|
require 'selenium/webdriver/safari/server'
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Safari
|
|
@@ -113,8 +130,8 @@ module Selenium
|
|
|
113
130
|
|
|
114
131
|
caps
|
|
115
132
|
end
|
|
116
|
-
end
|
|
117
133
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
end
|
|
134
|
+
end # Bridge
|
|
135
|
+
end # Safari
|
|
136
|
+
end # WebDriver
|
|
137
|
+
end # Selenium
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Safari
|
|
@@ -13,8 +30,7 @@ module Selenium
|
|
|
13
30
|
@process.stop if @process
|
|
14
31
|
end
|
|
15
32
|
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
end
|
|
33
|
+
end # Browser
|
|
34
|
+
end # Safari
|
|
35
|
+
end # WebDriver
|
|
36
|
+
end # Selenium
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Safari
|
|
@@ -164,7 +181,7 @@ module Selenium
|
|
|
164
181
|
end
|
|
165
182
|
end
|
|
166
183
|
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
end
|
|
170
|
-
end
|
|
184
|
+
end # Extensions
|
|
185
|
+
end # Safari
|
|
186
|
+
end # WebDriver
|
|
187
|
+
end # Selenium
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Safari
|
|
@@ -73,7 +90,7 @@ module Selenium
|
|
|
73
90
|
pn
|
|
74
91
|
end
|
|
75
92
|
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
93
|
+
end # Options
|
|
94
|
+
end # Safari
|
|
95
|
+
end # WebDriver
|
|
96
|
+
end # Selenium
|
|
Binary file
|
|
@@ -6733,7 +6733,7 @@ goog.json.Serializer.prototype.serializeObject_ = function(a, b) {
|
|
|
6733
6733
|
};
|
|
6734
6734
|
bot.json = {};
|
|
6735
6735
|
bot.json.NATIVE_JSON = !0;
|
|
6736
|
-
bot.json.SUPPORTS_NATIVE_JSON_ = goog.userAgent.WEBKIT || goog.userAgent.
|
|
6736
|
+
bot.json.SUPPORTS_NATIVE_JSON_ = goog.userAgent.WEBKIT || goog.userAgent.GECKO && bot.userAgent.isEngineVersion(3.5) || goog.userAgent.IE && bot.userAgent.isEngineVersion(8);
|
|
6737
6737
|
bot.json.stringify = bot.json.NATIVE_JSON && bot.json.SUPPORTS_NATIVE_JSON_ ? JSON.stringify : goog.json.serialize;
|
|
6738
6738
|
bot.json.parse = bot.json.NATIVE_JSON && bot.json.SUPPORTS_NATIVE_JSON_ ? JSON.parse : goog.json.parse;
|
|
6739
6739
|
var safaridriver = {dom:{}};
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# Licensed to the Software Freedom Conservancy (SFC) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The SFC licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
1
18
|
module Selenium
|
|
2
19
|
module WebDriver
|
|
3
20
|
module Safari
|
|
@@ -138,8 +155,8 @@ Server: safaridriver-ruby
|
|
|
138
155
|
str.gsub(":", '%3A').gsub('/', '%2F')
|
|
139
156
|
end
|
|
140
157
|
end
|
|
141
|
-
end
|
|
142
158
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
end
|
|
159
|
+
end # Server
|
|
160
|
+
end # Safari
|
|
161
|
+
end # WebDriver
|
|
162
|
+
end # Selenium
|