Metadata-Version: 2.1
Name: elements-manager
Version: 1.0.2
Summary: Selenium Element Finder Library
Home-page: UNKNOWN
Author: Shrikar
Author-email: datakund@gmail.com
License: Apache License 2.0
Keywords: selenium no-html web-scraping bots test-automation no-code low-code cloud proxy datakund element-manager selenium element manager
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: beautifulsoup4

### Installation
```sh
pip install elements-manager
```

### Import
```sh
from elements_manager import get_xpath
```


### Example
Below script searches given keyword on google & scrapes result count
```sh
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from elements_manager import get_xpath

driver = webdriver.Chrome("chromedriver.exe")

# Open URL
driver.get('https://www.google.com/')

xpath=get_xpath(driver,'QYQyyPtidm5_xqG')
driver.find_element_by_xpath(xpath).click()

# Type in search bar
driver.switch_to.active_element.send_keys('shoes\n')

# Advanced method to scrape result count
xpath=get_xpath(driver,'z6XMV66vxokYpfn')
result_count=driver.find_element_by_xpath(xpath).text
print('result_count ',result_count)
driver.quit()

```


### Contact Us
* [Telegram](https://t.me/datakund)

