# PyWizardLite
PyWizardLite is a python script that automates the process of downloading the suitable version of
chrome driver for the chrome version installed on the machine. It also has the functionality
to generate the xpath of an element on a webpage using the text of the element and the it
will wait for the element to be visible.
* Support Windows OS Only
* Source/Reference - [SergeyPirogov/webdriver_manager](https://github.com/SergeyPirogov/webdriver_manager/)
## Requirements
### Modules - selenium, requests
```
python -m pip install selenium requests
```
## Installation
```python -m pip install pywizardlite```
## Usage
```python
from pywizardlite import PyWizardLite
# Download suitable version of chrome driver for the chrome version installed on the machine
PyWizardLite().setup_chrome_web_driver(
proxy_url = "https://proxy.com:8080"
)
# Generate XPath of an element using String
xpath = PyWizardLite().generate_string_xpath(
driver = driver, text = "Some Text"
)
print(xpath)
# Output could be //*[@id="some_id"] or None
# Wait for an element to be visible
PyWizardLite().wait_until_element_is_visible(
driver = driver, element_by = "ID", element = "some_id"
)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/4akhilkumar/PyWizardLite",
"name": "PyWizardLite",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Python script,Selenium,ChromeDriver,XPath,Element visibility,Download,Web scraping,Automated testing",
"author": "Sai Akhil Kumar Reddy N",
"author_email": "4akhilkumar@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/57/77/4d72492b4abb1ec5a25e2ad4d1f205b501ceb3d094ea0215dcb4298054d9/PyWizardLite-0.0.8.tar.gz",
"platform": null,
"description": "# PyWizardLite\r\nPyWizardLite is a python script that automates the process of downloading the suitable version of\r\nchrome driver for the chrome version installed on the machine. It also has the functionality\r\nto generate the xpath of an element on a webpage using the text of the element and the it\r\nwill wait for the element to be visible.\r\n\r\n* Support Windows OS Only\r\n* Source/Reference - [SergeyPirogov/webdriver_manager](https://github.com/SergeyPirogov/webdriver_manager/)\r\n\r\n## Requirements\r\n### Modules - selenium, requests\r\n```\r\npython -m pip install selenium requests\r\n```\r\n\r\n## Installation\r\n```python -m pip install pywizardlite```\r\n\r\n## Usage\r\n```python\r\nfrom pywizardlite import PyWizardLite\r\n\r\n# Download suitable version of chrome driver for the chrome version installed on the machine\r\nPyWizardLite().setup_chrome_web_driver(\r\n proxy_url = \"https://proxy.com:8080\"\r\n)\r\n\r\n\r\n# Generate XPath of an element using String\r\nxpath = PyWizardLite().generate_string_xpath(\r\n driver = driver, text = \"Some Text\"\r\n)\r\nprint(xpath)\r\n# Output could be //*[@id=\"some_id\"] or None\r\n\r\n\r\n# Wait for an element to be visible\r\nPyWizardLite().wait_until_element_is_visible(\r\n driver = driver, element_by = \"ID\", element = \"some_id\"\r\n)\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": "Apache",
"summary": "PyWizardLite automates downloading the correct Chrome driver and generates XPath expressions for visible elements using their text.",
"version": "0.0.8",
"split_keywords": [
"python script",
"selenium",
"chromedriver",
"xpath",
"element visibility",
"download",
"web scraping",
"automated testing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "57774d72492b4abb1ec5a25e2ad4d1f205b501ceb3d094ea0215dcb4298054d9",
"md5": "434972c79ab5e04fca3d68cac51a53d9",
"sha256": "2c2fc39c781e22cf07993bb0024a66bc897d7d9039e5227c358be6bc97ef57fc"
},
"downloads": -1,
"filename": "PyWizardLite-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "434972c79ab5e04fca3d68cac51a53d9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17904,
"upload_time": "2023-04-13T07:11:47",
"upload_time_iso_8601": "2023-04-13T07:11:47.479051Z",
"url": "https://files.pythonhosted.org/packages/57/77/4d72492b4abb1ec5a25e2ad4d1f205b501ceb3d094ea0215dcb4298054d9/PyWizardLite-0.0.8.tar.gz",
"yanked": true,
"yanked_reason": "Alpha Version"
}
],
"upload_time": "2023-04-13 07:11:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "4akhilkumar",
"github_project": "PyWizardLite",
"lcname": "pywizardlite"
}