Path: blob/trunk/py/selenium/webdriver/chrome/remote_connection.py
4005 views
# Licensed to the Software Freedom Conservancy (SFC) under one1# or more contributor license agreements. See the NOTICE file2# distributed with this work for additional information3# regarding copyright ownership. The SFC licenses this file4# to you under the Apache License, Version 2.0 (the5# "License"); you may not use this file except in compliance6# with the License. You may obtain a copy of the License at7#8# http://www.apache.org/licenses/LICENSE-2.09#10# Unless required by applicable law or agreed to in writing,11# software distributed under the License is distributed on an12# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY13# KIND, either express or implied. See the License for the14# specific language governing permissions and limitations15# under the License.161718from selenium.webdriver import DesiredCapabilities19from selenium.webdriver.chromium.remote_connection import ChromiumRemoteConnection20from selenium.webdriver.remote.client_config import ClientConfig212223class ChromeRemoteConnection(ChromiumRemoteConnection):24browser_name = DesiredCapabilities.CHROME["browserName"]2526def __init__(27self,28remote_server_addr: str,29keep_alive: bool = True,30ignore_proxy: bool = False,31client_config: ClientConfig | None = None,32) -> None:33super().__init__(34remote_server_addr=remote_server_addr,35vendor_prefix="goog",36browser_name=ChromeRemoteConnection.browser_name,37keep_alive=keep_alive,38ignore_proxy=ignore_proxy,39client_config=client_config,40)414243