Skip to main content

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 seleniumKit 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


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.3.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file selenium-kit-0.0.3.tar.gz.

File metadata

  • Download URL: selenium-kit-0.0.3.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

Hashes for selenium-kit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d2027e1ca251f542e9b8cb13ef517aeaf2cf78fc852521c382fbf2c9a242047e
MD5 6cca3041a35b40b2b7f6f8a79abec84f
BLAKE2b-256 2b130df4f836b430a1099e19fe301d8b3ada5b602adc9887b93e59768e013fe9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page