Skip to main content

OperaGx webdriver with cdc patch.

Project description

OperaGx webdriver with cdc patch.

pip install operagxdriver

    Start the Opera WebDriver and return the WebDriver instance.

    This function starts the Opera WebDriver, which allows you to automate interactions
    with the Opera web browser. It uses the Selenium library and requires the paths to
    the Opera browser executable and the Opera WebDriver executable.

    Important! A CDC patch (from https://github.com/ultrafunkamsterdam/undetected-chromedriver ) is applied before running the EXE file.

    Note: Before running this function, make sure to download the appropriate Opera
    WebDriver version that matches your installed Opera browser version.
    https://github.com/operasoftware/operachromiumdriver/releases

    Args:
        opera_browser_exe (str): The file path to the Opera browser executable.
        opera_driver_exe (str): The file path to the Opera WebDriver executable.
        userdir (str, optional): The user directory for the Opera profile. If provided,
            the browser will use this directory to store the user data (cookies, history,
            etc.). If not provided, the default profile will be used.
        arguments (tuple, optional): Additional command-line arguments to pass to the
            Opera WebDriver when launching the browser. Defaults to a tuple containing the
            following arguments: (
                "--no-sandbox",
                "--test-type",
                "--no-default-browser-check",
                "--no-first-run",
                "--incognito",
                "--start-maximized",
            )

    Returns:
        selenium.webdriver.remote.webdriver.WebDriver:
        The WebDriver instance for the running Opera browser.

    Example:
        from operagxdriver import start_opera_driver

        driver = start_opera_driver(
            opera_browser_exe=r"C:\Program Files\Opera GX\opera.exe",
            opera_driver_exe=r"C:\Users\hansc\Downloads\operadriver_win64\operadriver.exe",
            userdir='c:\\operabrowserprofile',
            arguments=(
                "--no-sandbox",
                "--test-type",
                "--no-default-browser-check",
                "--no-first-run",
                "--incognito",
                "--start-maximized",
            )
        )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

operagxdriver-0.10.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

operagxdriver-0.10-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file operagxdriver-0.10.tar.gz.

File metadata

  • Download URL: operagxdriver-0.10.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for operagxdriver-0.10.tar.gz
Algorithm Hash digest
SHA256 e90e93544614d99ae88bca542a16a9ede093c384690738915d105147b5c2f1ec
MD5 8628c9933ec265ec8c6acd5fa7e44675
BLAKE2b-256 cdc2443b2b3e93a62cee39232e2952ea14d5f4c9eaaf909ea6b639ef438c9691

See more details on using hashes here.

File details

Details for the file operagxdriver-0.10-py3-none-any.whl.

File metadata

  • Download URL: operagxdriver-0.10-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for operagxdriver-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 300890bbac3bbfe4d09b48ae2835ed847f70065b64050dfbfb7c6487055829f5
MD5 4d05b38e1132ad2a7c75ea0d280765fe
BLAKE2b-256 3c5a702ab62c30491e6f2d075abaa402bfd12cdd344efd34ef6ec414265de976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page