selenium-enhancer


Nameselenium-enhancer JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/dannybrown37/SeleniumEnhancer
SummaryA package to streamline and enhance your Selenium code
upload_time2023-04-08 18:55:48
maintainer
docs_urlNone
authorDanny Brown
requires_python
licenseMIT
keywords selenium
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Installation

```
pip install selenium-enhancer
```

# Setting Up a Driver

After installing or whenver you need to update to the latest version of
ChromeDriver, run:

```
python -m selenium_enhancer.get_latest_chrome_driver
```

[ChromeDriver](https://chromedriver.chromium.org/) is recommended as it has 
more options, but Firefox and IE drivers are in theory compatible as well.
Please feel free to contribute if you need additional functionality.

# Getting Started

```python
from selenium_enhancer import SeleniumEnhancer

class ClassName(SeleniumEnhancer):

    def complete_web_form(self):
        self.start_chrome_driver()
        self.driver.get("full-url-of-page-with-form.com")
        self.set_input_elements({
            "id or CSS selector or XPath" : "value I want to set",
            "second id or CSS selector or XPath" : "second value"
        })
        self.set_select_elements({
            "name or id of select element" : "partial/complete text of option"
        })
        self.click_button("submitButtonId")


driver = ClassName()
driver.complete_web_form()
```

# Examples

If you're cloning the repo to contribute, you can run/view/add to the tests
with at ``pytest tests -s -vv``.

# Miscellaneous

[PyPi](https://pypi.org/project/selenium-enhancer/)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dannybrown37/SeleniumEnhancer",
    "name": "selenium-enhancer",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "selenium",
    "author": "Danny Brown",
    "author_email": "danny.public.emails@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f4/d8/9f4cb77b2928ac80368c0e15bb62d1b159e4b2c0ce7eb906d8c93766e676/selenium_enhancer-1.0.1.tar.gz",
    "platform": null,
    "description": "# Installation\n\n```\npip install selenium-enhancer\n```\n\n# Setting Up a Driver\n\nAfter installing or whenver you need to update to the latest version of\nChromeDriver, run:\n\n```\npython -m selenium_enhancer.get_latest_chrome_driver\n```\n\n[ChromeDriver](https://chromedriver.chromium.org/) is recommended as it has \nmore options, but Firefox and IE drivers are in theory compatible as well.\nPlease feel free to contribute if you need additional functionality.\n\n# Getting Started\n\n```python\nfrom selenium_enhancer import SeleniumEnhancer\n\nclass ClassName(SeleniumEnhancer):\n\n    def complete_web_form(self):\n        self.start_chrome_driver()\n        self.driver.get(\"full-url-of-page-with-form.com\")\n        self.set_input_elements({\n            \"id or CSS selector or XPath\" : \"value I want to set\",\n            \"second id or CSS selector or XPath\" : \"second value\"\n        })\n        self.set_select_elements({\n            \"name or id of select element\" : \"partial/complete text of option\"\n        })\n        self.click_button(\"submitButtonId\")\n\n\ndriver = ClassName()\ndriver.complete_web_form()\n```\n\n# Examples\n\nIf you're cloning the repo to contribute, you can run/view/add to the tests\nwith at ``pytest tests -s -vv``.\n\n# Miscellaneous\n\n[PyPi](https://pypi.org/project/selenium-enhancer/)\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A package to streamline and enhance your Selenium code",
    "version": "1.0.1",
    "split_keywords": [
        "selenium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e375d3745af03a6d5fa291c80f9225ae4070cdc1bc6dd5be21d3d40f4ccd3d45",
                "md5": "0a9f10e6351a57154ba5d11811f474e4",
                "sha256": "139dfcd87a8847bdbbd7e300124037150344349a0df4046f1f65030ad691e034"
            },
            "downloads": -1,
            "filename": "selenium_enhancer-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a9f10e6351a57154ba5d11811f474e4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2726,
            "upload_time": "2023-04-08T18:55:46",
            "upload_time_iso_8601": "2023-04-08T18:55:46.758041Z",
            "url": "https://files.pythonhosted.org/packages/e3/75/d3745af03a6d5fa291c80f9225ae4070cdc1bc6dd5be21d3d40f4ccd3d45/selenium_enhancer-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4d89f4cb77b2928ac80368c0e15bb62d1b159e4b2c0ce7eb906d8c93766e676",
                "md5": "1f42c49f3868c35700dd91b09e9cc371",
                "sha256": "2be06233d8e58da1b85cef1476e22400be72df8bc3e343dbf5f71298dca0415a"
            },
            "downloads": -1,
            "filename": "selenium_enhancer-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1f42c49f3868c35700dd91b09e9cc371",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2543,
            "upload_time": "2023-04-08T18:55:48",
            "upload_time_iso_8601": "2023-04-08T18:55:48.708865Z",
            "url": "https://files.pythonhosted.org/packages/f4/d8/9f4cb77b2928ac80368c0e15bb62d1b159e4b2c0ce7eb906d8c93766e676/selenium_enhancer-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-08 18:55:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "dannybrown37",
    "github_project": "SeleniumEnhancer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "selenium-enhancer"
}
        
Elapsed time: 0.70337s