Sha256: a0540b6ada9c1477c5d48c99fa612907313d8069ba296e8f4c91b3b400041fce
Contents?: true
Size: 1.71 KB
Versions: 10
Compression:
Stored size: 1.71 KB
Contents
# frozen_string_literal: true # Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. module Selenium module WebDriver module Chromium class Service < WebDriver::Service protected def extract_service_args(driver_opts) driver_args = super driver_opts = driver_opts.dup driver_args << "--log-path=#{driver_opts.delete(:log_path)}" if driver_opts.key?(:log_path) driver_args << "--url-base=#{driver_opts.delete(:url_base)}" if driver_opts.key?(:url_base) driver_args << "--port-server=#{driver_opts.delete(:port_server)}" if driver_opts.key?(:port_server) if driver_opts.key?(:whitelisted_ips) driver_args << "--whitelisted-ips=#{driver_opts.delete(:whitelisted_ips)}" end driver_args << '--verbose' if driver_opts.key?(:verbose) driver_args << '--silent' if driver_opts.key?(:silent) driver_args end end # Service end # Chromium end # WebDriver end # Selenium
Version data entries
10 entries across 10 versions & 1 rubygems