selenium-webdriver 4.0.0.alpha4 → 4.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selenium/devtools.rb +30 -0
- data/lib/selenium/server.rb +18 -26
- data/lib/selenium/webdriver.rb +1 -3
- data/lib/selenium/webdriver/atoms/findElements.js +93 -93
- data/lib/selenium/webdriver/atoms/getAttribute.js +75 -59
- data/lib/selenium/webdriver/atoms/isDisplayed.js +72 -72
- data/lib/selenium/webdriver/atoms/mutationListener.js +55 -0
- data/lib/selenium/webdriver/chrome.rb +1 -1
- data/lib/selenium/webdriver/chrome/driver.rb +17 -6
- data/lib/selenium/webdriver/chrome/{bridge.rb → features.rb} +6 -8
- data/lib/selenium/webdriver/chrome/options.rb +54 -37
- data/lib/selenium/webdriver/chrome/profile.rb +1 -1
- data/lib/selenium/webdriver/chrome/service.rb +4 -2
- data/lib/selenium/webdriver/common.rb +7 -2
- data/lib/selenium/webdriver/common/driver.rb +86 -26
- data/lib/selenium/webdriver/common/driver_extensions/has_authentication.rb +89 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_devtools.rb +23 -1
- data/lib/selenium/webdriver/common/driver_extensions/has_location.rb +5 -8
- data/lib/selenium/webdriver/common/driver_extensions/has_log_events.rb +149 -0
- data/lib/selenium/webdriver/{edge_chrome/bridge.rb → common/driver_extensions/has_logs.rb} +7 -7
- data/lib/selenium/webdriver/common/driver_extensions/has_network_connection.rb +6 -27
- data/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb +67 -0
- data/lib/selenium/webdriver/common/driver_extensions/has_remote_status.rb +1 -0
- data/lib/selenium/webdriver/common/driver_extensions/prints_page.rb +32 -0
- data/lib/selenium/webdriver/common/element.rb +46 -12
- data/lib/selenium/webdriver/common/interactions/interaction.rb +4 -1
- data/lib/selenium/webdriver/common/logger.rb +6 -3
- data/lib/selenium/webdriver/common/manager.rb +11 -1
- data/lib/selenium/webdriver/common/options.rb +85 -11
- data/lib/selenium/webdriver/common/platform.rb +3 -1
- data/lib/selenium/webdriver/common/port_prober.rb +4 -6
- data/lib/selenium/webdriver/common/proxy.rb +4 -1
- data/lib/selenium/webdriver/common/search_context.rb +4 -1
- data/lib/selenium/webdriver/common/service.rb +13 -114
- data/lib/selenium/webdriver/common/service_manager.rb +151 -0
- data/lib/selenium/webdriver/common/takes_screenshot.rb +63 -0
- data/lib/selenium/webdriver/common/target_locator.rb +4 -4
- data/lib/selenium/webdriver/devtools.rb +144 -0
- data/lib/selenium/webdriver/devtools/console_event.rb +38 -0
- data/lib/selenium/webdriver/{edge_html/driver.rb → devtools/exception_event.rb} +10 -13
- data/lib/selenium/webdriver/devtools/mutation_event.rb +37 -0
- data/lib/selenium/webdriver/devtools/request.rb +57 -0
- data/lib/selenium/webdriver/edge.rb +7 -29
- data/lib/selenium/webdriver/{edge_chrome → edge}/driver.rb +10 -4
- data/lib/selenium/webdriver/edge/features.rb +39 -0
- data/lib/selenium/webdriver/{edge_chrome → edge}/options.rb +12 -3
- data/lib/selenium/webdriver/{edge_chrome → edge}/profile.rb +2 -2
- data/lib/selenium/webdriver/{edge_chrome → edge}/service.rb +2 -2
- data/lib/selenium/webdriver/firefox.rb +5 -1
- data/lib/selenium/webdriver/firefox/driver.rb +12 -3
- data/lib/selenium/webdriver/firefox/{bridge.rb → features.rb} +3 -3
- data/lib/selenium/webdriver/firefox/options.rb +25 -31
- data/lib/selenium/webdriver/firefox/profile.rb +12 -2
- data/lib/selenium/webdriver/firefox/service.rb +1 -1
- data/lib/selenium/webdriver/ie/driver.rb +1 -2
- data/lib/selenium/webdriver/ie/options.rb +7 -20
- data/lib/selenium/webdriver/ie/service.rb +4 -2
- data/lib/selenium/webdriver/remote/bridge.rb +37 -42
- data/lib/selenium/webdriver/remote/capabilities.rb +37 -34
- data/lib/selenium/webdriver/remote/commands.rb +1 -0
- data/lib/selenium/webdriver/remote/driver.rb +12 -3
- data/lib/selenium/webdriver/remote/http/common.rb +0 -5
- data/lib/selenium/webdriver/remote/http/default.rb +8 -7
- data/lib/selenium/webdriver/remote/http/persistent.rb +6 -0
- data/lib/selenium/webdriver/safari.rb +8 -1
- data/lib/selenium/webdriver/safari/driver.rb +3 -4
- data/lib/selenium/webdriver/safari/{bridge.rb → features.rb} +3 -3
- data/lib/selenium/webdriver/safari/options.rb +1 -33
- data/lib/selenium/webdriver/support/block_event_listener.rb +1 -1
- data/lib/selenium/webdriver/support/color.rb +2 -2
- data/lib/selenium/webdriver/support/event_firing_bridge.rb +1 -1
- data/lib/selenium/webdriver/support/guards.rb +95 -0
- data/lib/selenium/webdriver/support/guards/guard.rb +89 -0
- data/lib/selenium/webdriver/support/guards/guard_condition.rb +52 -0
- data/lib/selenium/webdriver/support/select.rb +2 -2
- data/lib/selenium/webdriver/version.rb +1 -1
- metadata +69 -32
- data/CHANGES +0 -1719
- data/Gemfile +0 -4
- data/LICENSE +0 -202
- data/README.md +0 -35
- data/lib/selenium/webdriver/common/driver_extensions/rotatable.rb +0 -61
- data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +0 -65
- data/lib/selenium/webdriver/edge_html/options.rb +0 -91
- data/lib/selenium/webdriver/edge_html/service.rb +0 -47
- data/selenium-webdriver.gemspec +0 -48
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
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 EdgeHtml
|
23
|
-
class Service < WebDriver::Service
|
24
|
-
DEFAULT_PORT = 17556
|
25
|
-
EXECUTABLE = 'MicrosoftWebDriver'
|
26
|
-
MISSING_TEXT = <<~ERROR
|
27
|
-
Unable to find MicrosoftWebDriver. Please install it following instructions
|
28
|
-
at https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/.
|
29
|
-
ERROR
|
30
|
-
SHUTDOWN_SUPPORTED = false
|
31
|
-
|
32
|
-
private
|
33
|
-
|
34
|
-
# Note: This processing is deprecated
|
35
|
-
def extract_service_args(driver_opts)
|
36
|
-
driver_args = super
|
37
|
-
driver_opts = driver_opts.dup
|
38
|
-
driver_args << "--host=#{driver_opts[:host]}" if driver_opts.key? :host
|
39
|
-
driver_args << "--package=#{driver_opts[:package]}" if driver_opts.key? :package
|
40
|
-
driver_args << "--silent" if driver_opts[:silent] == true
|
41
|
-
driver_args << "--verbose" if driver_opts[:verbose] == true
|
42
|
-
driver_args
|
43
|
-
end
|
44
|
-
end # Service
|
45
|
-
end # EdgeHtml
|
46
|
-
end # WebDriver
|
47
|
-
end # Service
|
data/selenium-webdriver.gemspec
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
root = File.expand_path(File.dirname(__FILE__))
|
4
|
-
raise "cwd must be #{root} when reading gemspec" if root != Dir.pwd
|
5
|
-
|
6
|
-
$LOAD_PATH.push(File.expand_path('lib', root))
|
7
|
-
require 'selenium/webdriver/version'
|
8
|
-
|
9
|
-
Gem::Specification.new do |s|
|
10
|
-
s.name = 'selenium-webdriver'
|
11
|
-
s.version = Selenium::WebDriver::VERSION
|
12
|
-
|
13
|
-
s.authors = ['Alex Rodionov', 'Titus Fortner', 'Thomas Walpole']
|
14
|
-
s.email = ['p0deje@gmail.com', 'titusfortner@gmail.com', 'twalpole@gmail.com']
|
15
|
-
|
16
|
-
s.summary = 'The next generation developer focused tool for automated testing of webapps'
|
17
|
-
s.description = 'WebDriver is a tool for writing automated tests of websites. ' \
|
18
|
-
'It aims to mimic the behaviour of a real user, ' \
|
19
|
-
'and as such interacts with the HTML of the application.'
|
20
|
-
|
21
|
-
s.license = 'Apache-2.0'
|
22
|
-
s.homepage = 'https://github.com/SeleniumHQ/selenium'
|
23
|
-
s.metadata = {
|
24
|
-
'changelog_uri' => 'https://github.com/SeleniumHQ/selenium/blob/master/rb/CHANGES',
|
25
|
-
'source_code_uri' => 'https://github.com/SeleniumHQ/selenium/tree/master/rb'
|
26
|
-
}
|
27
|
-
|
28
|
-
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
|
29
|
-
s.required_ruby_version = Gem::Requirement.new('>= 2.4')
|
30
|
-
|
31
|
-
s.files = Dir[root + '/**/*'].reject { |e| e =~ /ruby\.iml|build\.desc/ }.map { |e| e.sub(root + '/', '') }
|
32
|
-
s.require_paths = ['lib']
|
33
|
-
|
34
|
-
s.add_runtime_dependency 'childprocess', ['>= 0.5', '< 4.0']
|
35
|
-
s.add_runtime_dependency 'rubyzip', ['>= 1.2.2']
|
36
|
-
s.add_runtime_dependency 'websocket', ['~> 1.0']
|
37
|
-
|
38
|
-
# childprocess requires ffi on windows but doesn't declare it in its dependencies
|
39
|
-
s.add_development_dependency 'ffi'
|
40
|
-
s.add_development_dependency 'rack', ['~> 2.0']
|
41
|
-
s.add_development_dependency 'rake'
|
42
|
-
s.add_development_dependency 'rspec', ['~> 3.0']
|
43
|
-
s.add_development_dependency 'rubocop', ['~> 0.73.0']
|
44
|
-
s.add_development_dependency 'rubocop-performance'
|
45
|
-
s.add_development_dependency 'rubocop-rspec'
|
46
|
-
s.add_development_dependency 'webmock', ['~> 3.5']
|
47
|
-
s.add_development_dependency 'yard', ['~> 0.9.11']
|
48
|
-
end
|