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 SeleniumDriver
# 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.2.tar.gz
(2.7 kB
view details)
File details
Details for the file selenium-kit-0.0.2.tar.gz.
File metadata
- Download URL: selenium-kit-0.0.2.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 |
fbd632a20e45e75d13d6b72201e788bbd16eaa6c117c95f72a1fbbc301bf4634
|
|
| MD5 |
9a0f26325b14f60f5399bfd7dcff008a
|
|
| BLAKE2b-256 |
f39ecab3a1bcfc41ea5202b840bb413686a157669eb530971945cd2e2dbde445
|