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 Firefox
|
|
@@ -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 Firefox
|
|
@@ -11,9 +28,7 @@ module Selenium
|
|
|
11
28
|
http_client = opts.delete(:http_client)
|
|
12
29
|
proxy = opts.delete(:proxy)
|
|
13
30
|
|
|
14
|
-
caps = opts.delete(:desired_capabilities)
|
|
15
|
-
Remote::Capabilities.firefox(:native_events => DEFAULT_ENABLE_NATIVE_EVENTS)
|
|
16
|
-
end
|
|
31
|
+
caps = opts.delete(:desired_capabilities) { Remote::Capabilities.firefox }
|
|
17
32
|
|
|
18
33
|
@launcher = create_launcher(port, profile)
|
|
19
34
|
|
|
@@ -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 Firefox
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"frozen": {
|
|
3
3
|
"app.update.auto": false,
|
|
4
4
|
"app.update.enabled": false,
|
|
5
|
+
"browser.displayedE10SNotice": 4,
|
|
5
6
|
"browser.download.manager.showWhenStarting": false,
|
|
6
7
|
"browser.EULA.override": true,
|
|
7
8
|
"browser.EULA.3.accepted": true,
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
"browser.safebrowsing.enabled": false,
|
|
12
13
|
"browser.safebrowsing.malware.enabled": false,
|
|
13
14
|
"browser.search.update": false,
|
|
15
|
+
"browser.selfsupport.url" : "",
|
|
14
16
|
"browser.sessionstore.resume_from_crash": false,
|
|
15
17
|
"browser.shell.checkDefaultBrowser": false,
|
|
16
18
|
"browser.tabs.warnOnClose": false,
|
|
Binary file
|
|
@@ -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 Firefox
|
|
@@ -32,7 +49,6 @@ module Selenium
|
|
|
32
49
|
socket_lock.locked do
|
|
33
50
|
find_free_port
|
|
34
51
|
create_profile
|
|
35
|
-
start_silent_and_wait
|
|
36
52
|
start
|
|
37
53
|
connect_until_stable
|
|
38
54
|
end
|
|
@@ -64,13 +80,6 @@ module Selenium
|
|
|
64
80
|
@binary.start_with @profile, @profile_dir, "-foreground"
|
|
65
81
|
end
|
|
66
82
|
|
|
67
|
-
def start_silent_and_wait
|
|
68
|
-
assert_profile
|
|
69
|
-
|
|
70
|
-
@binary.start_with @profile, @profile_dir, "-silent"
|
|
71
|
-
@binary.wait
|
|
72
|
-
end
|
|
73
|
-
|
|
74
83
|
def connect_until_stable
|
|
75
84
|
poller = SocketPoller.new(@host, @port, STABLE_CONNECTION_TIMEOUT)
|
|
76
85
|
|
|
Binary file
|
|
@@ -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 Firefox
|
|
@@ -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 Firefox
|
|
@@ -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 Firefox
|
|
@@ -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
|
|
|
@@ -11,9 +28,10 @@ module Selenium
|
|
|
11
28
|
def self.driver_path
|
|
12
29
|
@driver_path ||= nil
|
|
13
30
|
end
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
end
|
|
31
|
+
|
|
32
|
+
end # IE
|
|
33
|
+
end # WebDriver
|
|
34
|
+
end # Selenium
|
|
17
35
|
|
|
18
36
|
require 'selenium/webdriver/ie/server'
|
|
19
37
|
require 'selenium/webdriver/ie/bridge'
|
|
@@ -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 IE
|
|
@@ -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 IE
|
|
@@ -84,7 +101,7 @@ module Selenium
|
|
|
84
101
|
args
|
|
85
102
|
end
|
|
86
103
|
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
104
|
+
end # Server
|
|
105
|
+
end # IE
|
|
106
|
+
end # WebDriver
|
|
107
|
+
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 IPhone
|
|
@@ -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 IPhone
|
|
@@ -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'
|
|
2
19
|
|
|
3
20
|
require 'selenium/webdriver/phantomjs/service'
|
|
@@ -17,6 +34,6 @@ module Selenium
|
|
|
17
34
|
@path ||= Platform.find_binary("phantomjs")
|
|
18
35
|
end
|
|
19
36
|
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
37
|
+
end # PhantomJS
|
|
38
|
+
end # WebDriver
|
|
39
|
+
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 PhantomJS
|
|
@@ -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 PhantomJS
|
|
@@ -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 'uri'
|
|
2
19
|
|
|
3
20
|
require 'selenium/webdriver/remote/capabilities'
|
|
@@ -14,8 +31,6 @@ module Selenium
|
|
|
14
31
|
# @api private
|
|
15
32
|
module Remote
|
|
16
33
|
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
|
|
34
|
+
end # Remote
|
|
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 Remote
|
|
@@ -85,6 +102,8 @@ module Selenium
|
|
|
85
102
|
DriverExtensions::HasSessionId,
|
|
86
103
|
DriverExtensions::Rotatable,
|
|
87
104
|
DriverExtensions::HasTouchScreen,
|
|
105
|
+
DriverExtensions::HasLocation,
|
|
106
|
+
DriverExtensions::HasNetworkConnection,
|
|
88
107
|
DriverExtensions::HasRemoteStatus
|
|
89
108
|
]
|
|
90
109
|
end
|
|
@@ -321,12 +340,12 @@ module Selenium
|
|
|
321
340
|
execute :setLocation, {}, :location => loc
|
|
322
341
|
end
|
|
323
342
|
|
|
324
|
-
def
|
|
325
|
-
execute :
|
|
343
|
+
def getNetworkConnection
|
|
344
|
+
execute :getNetworkConnection
|
|
326
345
|
end
|
|
327
346
|
|
|
328
|
-
def
|
|
329
|
-
execute :
|
|
347
|
+
def setNetworkConnection(type)
|
|
348
|
+
execute :setNetworkConnection, {}, :parameters => {:type => type}
|
|
330
349
|
end
|
|
331
350
|
|
|
332
351
|
#
|
|
@@ -563,11 +582,7 @@ module Selenium
|
|
|
563
582
|
end
|
|
564
583
|
|
|
565
584
|
def elementEquals(element, other)
|
|
566
|
-
|
|
567
|
-
true
|
|
568
|
-
else
|
|
569
|
-
execute :elementEquals, :id => element.ref, :other => other.ref
|
|
570
|
-
end
|
|
585
|
+
element.ref == other.ref
|
|
571
586
|
end
|
|
572
587
|
|
|
573
588
|
#
|