semvec/pypi-packages huggingface dataset:
elements-manager 1.0.2
Selenium Element Finder Library
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

### 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)