Selenium kit
Project description
Selenium Kit
Selenium toolkit to download the selenium drivers automatically and to use the selenium drivers with all the necessary functions.
Sample Code
# Import selenium drivers
from selenium-kit import S
# Create the selenium object
selenium = SeleniumDriver()
# Call the url
url = "https://www.imdb.com/"
selenium.callURL(url)
# Write on the search text field
xpath = "input[@id='suggestion-search']"
element = selenium.elementByXPath(xpath)
selenium.sendKeys(element, preference)
# Click on the first search result
xpath = "div[@class='sc-idXgbr iHkrUj searchform__inputContainer']/div/div/div/ul/li"
movie_search_result = selenium.elementsByXPath(xpath)
sleep(0.5)
selenium.clickOnElement(movie_search_result[0])
# delete the selenium driver
del selenium
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selenium-kit-0.0.1.tar.gz
(2.7 kB
view details)
File details
Details for the file selenium-kit-0.0.1.tar.gz.
File metadata
- Download URL: selenium-kit-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a2646124d6859be4f7ece816c7664a6e397b9b3c4933567bbcf881314aa64b6
|
|
| MD5 |
b0ce7cc4641bc727aa8d471a67256515
|
|
| BLAKE2b-256 |
ea26d7208dc6e9aed60e02dfc99524bcede24d73cef59d16797ca5cf99602970
|