operagxdriver


Nameoperagxdriver JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/operagxdriver
SummaryOperaGx webdriver with cdc patch.
upload_time2023-07-20 02:25:18
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords operagx selenium webdriver
VCS
bugtrack_url
requirements selenium
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# OperaGx webdriver with cdc patch. 

## pip install operagxdriver 


```python
    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",
            )
        )

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/operagxdriver",
    "name": "operagxdriver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "OperaGx,Selenium,webdriver",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cd/c2/443b2b3e93a62cee39232e2952ea14d5f4c9eaaf909ea6b639ef438c9691/operagxdriver-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# OperaGx webdriver with cdc patch. \r\n\r\n## pip install operagxdriver \r\n\r\n\r\n```python\r\n    Start the Opera WebDriver and return the WebDriver instance.\r\n\r\n    This function starts the Opera WebDriver, which allows you to automate interactions\r\n    with the Opera web browser. It uses the Selenium library and requires the paths to\r\n    the Opera browser executable and the Opera WebDriver executable.\r\n\r\n    Important! A CDC patch (from https://github.com/ultrafunkamsterdam/undetected-chromedriver ) is applied before running the EXE file.\r\n\r\n    Note: Before running this function, make sure to download the appropriate Opera\r\n    WebDriver version that matches your installed Opera browser version.\r\n    https://github.com/operasoftware/operachromiumdriver/releases\r\n\r\n    Args:\r\n        opera_browser_exe (str): The file path to the Opera browser executable.\r\n        opera_driver_exe (str): The file path to the Opera WebDriver executable.\r\n        userdir (str, optional): The user directory for the Opera profile. If provided,\r\n            the browser will use this directory to store the user data (cookies, history,\r\n            etc.). If not provided, the default profile will be used.\r\n        arguments (tuple, optional): Additional command-line arguments to pass to the\r\n            Opera WebDriver when launching the browser. Defaults to a tuple containing the\r\n            following arguments: (\r\n                \"--no-sandbox\",\r\n                \"--test-type\",\r\n                \"--no-default-browser-check\",\r\n                \"--no-first-run\",\r\n                \"--incognito\",\r\n                \"--start-maximized\",\r\n            )\r\n\r\n    Returns:\r\n        selenium.webdriver.remote.webdriver.WebDriver:\r\n        The WebDriver instance for the running Opera browser.\r\n\r\n    Example:\r\n        from operagxdriver import start_opera_driver\r\n\r\n        driver = start_opera_driver(\r\n            opera_browser_exe=r\"C:\\Program Files\\Opera GX\\opera.exe\",\r\n            opera_driver_exe=r\"C:\\Users\\hansc\\Downloads\\operadriver_win64\\operadriver.exe\",\r\n            userdir='c:\\\\operabrowserprofile',\r\n            arguments=(\r\n                \"--no-sandbox\",\r\n                \"--test-type\",\r\n                \"--no-default-browser-check\",\r\n                \"--no-first-run\",\r\n                \"--incognito\",\r\n                \"--start-maximized\",\r\n            )\r\n        )\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "OperaGx webdriver with cdc patch.",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/operagxdriver"
    },
    "split_keywords": [
        "operagx",
        "selenium",
        "webdriver"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c5a702ab62c30491e6f2d075abaa402bfd12cdd344efd34ef6ec414265de976",
                "md5": "4d05b38e1132ad2a7c75ea0d280765fe",
                "sha256": "300890bbac3bbfe4d09b48ae2835ed847f70065b64050dfbfb7c6487055829f5"
            },
            "downloads": -1,
            "filename": "operagxdriver-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4d05b38e1132ad2a7c75ea0d280765fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6307,
            "upload_time": "2023-07-20T02:25:16",
            "upload_time_iso_8601": "2023-07-20T02:25:16.447576Z",
            "url": "https://files.pythonhosted.org/packages/3c/5a/702ab62c30491e6f2d075abaa402bfd12cdd344efd34ef6ec414265de976/operagxdriver-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cdc2443b2b3e93a62cee39232e2952ea14d5f4c9eaaf909ea6b639ef438c9691",
                "md5": "8628c9933ec265ec8c6acd5fa7e44675",
                "sha256": "e90e93544614d99ae88bca542a16a9ede093c384690738915d105147b5c2f1ec"
            },
            "downloads": -1,
            "filename": "operagxdriver-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "8628c9933ec265ec8c6acd5fa7e44675",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4398,
            "upload_time": "2023-07-20T02:25:18",
            "upload_time_iso_8601": "2023-07-20T02:25:18.232685Z",
            "url": "https://files.pythonhosted.org/packages/cd/c2/443b2b3e93a62cee39232e2952ea14d5f4c9eaaf909ea6b639ef438c9691/operagxdriver-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-20 02:25:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "operagxdriver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "selenium",
            "specs": []
        }
    ],
    "lcname": "operagxdriver"
}
        
Elapsed time: 0.08834s