abx_plugin_chrome.config

Module Contents

Classes

ChromeConfig

Functions

autodetect_system_chrome_install

create_macos_app_symlink

on macOS, some binaries are inside of .app, so we need to create a tiny bash script instead of a symlink (so that ../ parent relationships are relative to original .app instead of callsite dir)

Data

CHROMIUM_BINARY_NAMES_LINUX

CHROMIUM_BINARY_NAMES_MACOS

CHROMIUM_BINARY_NAMES

CHROME_BINARY_NAMES_LINUX

CHROME_BINARY_NAMES_MACOS

CHROME_BINARY_NAMES

APT_DEPENDENCIES

CHROME_CONFIG

API

abx_plugin_chrome.config.CHROMIUM_BINARY_NAMES_LINUX[source]

[‘chromium’, ‘chromium-browser’, ‘chromium-browser-beta’, ‘chromium-browser-unstable’, ‘chromium-bro…

abx_plugin_chrome.config.CHROMIUM_BINARY_NAMES_MACOS[source]

[‘/Applications/Chromium.app/Contents/MacOS/Chromium’]

abx_plugin_chrome.config.CHROMIUM_BINARY_NAMES[source]

None

abx_plugin_chrome.config.CHROME_BINARY_NAMES_LINUX[source]

[‘google-chrome’, ‘google-chrome-stable’, ‘google-chrome-beta’, ‘google-chrome-canary’, ‘google-chro…

abx_plugin_chrome.config.CHROME_BINARY_NAMES_MACOS[source]

[‘/Applications/Google Chrome.app/Contents/MacOS/Google Chrome’, ‘/Applications/Google Chrome Canary…

abx_plugin_chrome.config.CHROME_BINARY_NAMES[source]

None

abx_plugin_chrome.config.APT_DEPENDENCIES[source]

[‘apt-transport-https’, ‘at-spi2-common’, ‘chromium-browser’, ‘fontconfig’, ‘fonts-freefont-ttf’, ‘f…

abx_plugin_chrome.config.autodetect_system_chrome_install(PATH=None) Optional[pathlib.Path][source]

on macOS, some binaries are inside of .app, so we need to create a tiny bash script instead of a symlink (so that ../ parent relationships are relative to original .app instead of callsite dir)

class abx_plugin_chrome.config.ChromeConfig[source]

Bases: abx_spec_config.base_configset.BaseConfigSet

USE_CHROME: bool[source]

‘Field(…)’

CHROME_BINARY: str[source]

‘Field(…)’

CHROME_DEFAULT_ARGS: List[str][source]

‘Field(…)’

CHROME_EXTRA_ARGS: List[str][source]

‘Field(…)’

CHROME_TIMEOUT: int[source]

‘Field(…)’

CHROME_HEADLESS: bool[source]

‘Field(…)’

CHROME_SANDBOX: bool[source]

‘Field(…)’

CHROME_RESOLUTION: str[source]

‘Field(…)’

CHROME_CHECK_SSL_VALIDITY: bool[source]

‘Field(…)’

CHROME_USER_AGENT: str[source]

‘Field(…)’

CHROME_USER_DATA_DIR: pathlib.Path | None[source]

‘Field(…)’

CHROME_PROFILE_NAME: str[source]

‘Field(…)’

SAVE_SCREENSHOT: bool[source]

‘Field(…)’

SAVE_DOM: bool[source]

‘Field(…)’

SAVE_PDF: bool[source]

‘Field(…)’

validate()[source]
chrome_args(**options) List[str][source]

helper to build up a chrome shell command with arguments

abx_plugin_chrome.config.CHROME_CONFIG[source]

‘ChromeConfig(…)’