Skip to content

Commit

Permalink
[rb] fix rubocop spacing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 4, 2023
1 parent b7fb9f5 commit 5ce5555
Show file tree
Hide file tree
Showing 64 changed files with 0 additions and 97 deletions.
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/atoms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
module Selenium
module WebDriver
module Atoms

private

def read_atom(function)
Expand All @@ -32,7 +31,6 @@ def execute_atom(function_name, *arguments)
atom: read_atom(function_name))
execute_script(script, *arguments)
end

end # Atoms
end # WebDriver
end # Selenium
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/bidi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def send_cmd(method, **params)
def error_message(message)
"#{message['error']}: #{message['message']}\n#{message['stacktrace']}"
end

end # BiDi
end # WebDriver
end # Selenium
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/bidi/browsing_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def close
def create(type, reference_context)
@bidi.send_cmd("browsingContext.create", type: type.to_s, referenceContext: reference_context)
end

end # BrowsingContext
end # BiDi
end # WebDriver
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/bidi/browsing_context_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def initialize(id:, url:, children:, parent_context:)
@children = children
@parent_browsing_context = parent_context
end

end # BrowsingContextInfo
end # BiDi
end # WebDriver
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/bidi/log_inspector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def javascript_log_events(params)
listener.call(event)
end
end

end # LogInspector
end # Bidi
end # WebDriver
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/bidi/navigate_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def initialize(url:, navigation_id:)
@url = url
@navigation_id = navigation_id
end

end # NavigateResult
end # BiDi
end # WebDriver
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/bidi/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def unsubscribe(events, browsing_contexts = nil)

@bidi.send_cmd("session.unsubscribe", events: events_list, contexts: browsing_contexts_list)
end

end # Session
end # BiDi
end # WebDriver
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/chrome/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
module Selenium
module WebDriver
module Chrome

#
# Driver implementation for Chrome.
# @api private
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/chrome/features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module Selenium
module WebDriver
module Chrome
module Features

include WebDriver::Chromium::Features

CHROME_COMMANDS = {
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/chromium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module Chromium
autoload :Profile, 'selenium/webdriver/chromium/profile'
autoload :Options, 'selenium/webdriver/chromium/options'
autoload :Service, 'selenium/webdriver/chromium/service'

end # Chromium
end # WebDriver
end # Selenium
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/chromium/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
module Selenium
module WebDriver
module Chromium

#
# Driver implementation for Chrome.
# @api private
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/chromium/features.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module Chromium
module Features

CHROMIUM_COMMANDS = {
launch_app: [:post, 'session/:session_id/chromium/launch_app'],
get_network_conditions: [:get, 'session/:session_id/chromium/network_conditions'],
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/chromium/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module Chromium
class Service < WebDriver::Service

protected

def extract_service_args(driver_opts)
Expand Down
1 change: 0 additions & 1 deletion rb/lib/selenium/webdriver/common/action_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ def deprecate_method(device = nil, duration = nil, number = nil, method: :pause)
':device, :duration, :number keywords',
id: method
end

end # ActionBuilder
end # WebDriver
end # Selenium
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/common/child_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

module Selenium
module WebDriver

#
# @api private
#
Expand Down Expand Up @@ -120,7 +119,6 @@ def kill(pid)
rescue Errno::ECHILD, Errno::ESRCH
# already dead
end

end # ChildProcess
end # WebDriver
end # Selenium
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module DownloadsFiles

#
# Sets download path for Chromium.
#
Expand All @@ -38,7 +37,6 @@ def download_path=(path)
}
@bridge.send_command(params)
end

end # DownloadsFiles
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def save_full_page_screenshot(path)
def full_screenshot
@bridge.full_screenshot
end

end # FullPageScreenshot
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasAddons

#
# Installs addon.
#
Expand All @@ -43,7 +42,6 @@ def install_addon(path, temporary = nil)
def uninstall_addon(id)
@bridge.uninstall_addon(id)
end

end # HasAddons
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasApplePermissions

#
# Returns permissions.
#
Expand All @@ -44,7 +43,6 @@ def permissions
def permissions=(permissions)
@bridge.permissions = permissions
end

end # HasPermissions
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasAuthentication

#
# Registers basic authentication handler which is automatically
# used whenever browser gets an authentication required response.
Expand Down Expand Up @@ -82,7 +81,6 @@ def authenticate(request_id, url)
)
end
end

end # HasAuthentication
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasBiDi

#
# Retrieves WebDriver BiDi connection.
#
Expand All @@ -31,7 +30,6 @@ module HasBiDi
def bidi
@bidi ||= Selenium::WebDriver::BiDi.new(url: capabilities[:web_socket_url])
end

end # HasBiDi
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasCasting

#
# What devices ("sinks") are available to be cast to.
#
Expand Down
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/common/driver_extensions/has_cdp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasCDP

#
# Returns network conditions.
#
Expand All @@ -31,7 +30,6 @@ module HasCDP
def execute_cdp(cmd, **params)
@bridge.send_command(cmd: cmd, params: params)
end

end # HasCDP
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasContext

#
# Sets the context that Selenium commands are running in using
# a `with` statement. The state of the context on the server is
Expand All @@ -37,7 +36,6 @@ def context=(value)
def context
@bridge.context
end

end # HasContext
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasDebugger

#
# Attaches debugger to session.
#
Expand All @@ -35,7 +34,6 @@ module HasDebugger
def attach_debugger
@bridge.attach_debugger
end

end # HasDebugger
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasDevTools

#
# Retrieves connection to DevTools.
#
Expand All @@ -36,7 +35,6 @@ def devtools
Selenium::WebDriver::DevTools.new(url: devtools_url)
end
end

end # HasDevTools
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasLaunching

#
# Launches Chromium app specified by id.
#
Expand All @@ -31,7 +30,6 @@ module HasLaunching
def launch_app(id)
@bridge.launch_app(id)
end

end # HasLaunching
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def location=(*)
raise Error::UnsupportedOperationError, 'The W3C standard does not currently support setting location'
end
alias_method :set_location, :location

end # HasLocation
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def log_mutation_event(params)
def mutation_listener
@mutation_listener ||= read_atom(:mutationListener)
end

end # HasLogEvents
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasNetworkConditions

#
# Returns network conditions.
#
Expand Down Expand Up @@ -61,7 +60,6 @@ def network_conditions=(conditions)
def delete_network_conditions
@bridge.delete_network_conditions
end

end # HasNetworkConditions
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasNetworkInterception

#
# Intercepts requests coming from browser allowing
# to either pass them through like proxy or provide
Expand Down Expand Up @@ -64,7 +63,6 @@ def intercept(&block)
@interceptor ||= DevTools::NetworkInterceptor.new(devtools)
@interceptor.intercept(&block)
end

end # HasNetworkInterception
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasPermissions

#
# Set one permission.
#
Expand All @@ -44,7 +43,6 @@ def add_permissions(opt)
@bridge.set_permission(key, value)
end
end

end # HasPermissions
end # DriverExtensions
end # WebDriver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Selenium
module WebDriver
module DriverExtensions
module HasPinnedScripts

#
# Returns the list of all pinned scripts.
#
Expand Down Expand Up @@ -70,7 +69,6 @@ def unpin_script(script)
devtools.page.remove_script_to_evaluate_on_new_document(identifier: script.devtools_identifier)
pinned_scripts.delete(script)
end

end # HasPinnedScripts
end # DriverExtensions
end # WebDriver
Expand Down
Loading

0 comments on commit 5ce5555

Please sign in to comment.