Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Thursday

Thursday reduces the time it takes to get up and running with Selenium.

Installation

Use pip to install thursday as follows:

pip install thursday

Usage (Examples)

Instantiating ChromeDriver

from thursday import By, ChromeDriver, Keys

class Website(ChromeDriver):
    def __init__(self):
        super().__init__()

Finding WebElements

Arguments:

  • by — a selenium locator strategy
  • criteria — the search criteria to the locator strategy
foo = self.element_is_present(By.TAG_NAME, "input")
bar = self.element_is_clickable(By.XPATH, '//button[text()="bar"]')

Getting Field Values

Arguments:

  • field — the name of the field
@property
def email_address(self):
    return self.get_field_value("Email:")

Pressing Keys

Arguments:

  • key — a selenium Keys object
  • number_of_times — the number of times to press the key
self.press_key(Keys.TAB, 3)

Setting Field Values

Arguments:

  • field — the name of the field
  • value — the value to set the field to
    def login(self, username, password):
        self.set_field_value("Username:", "foo")
        self.set_field_value("Password:", "bar")

Exceptions

Selenium's ElementNotInteractable, StaleElementReference, and Timeout exceptions can be imported from thursday as follows:

from thursday.exceptions import ElementNotInteractableException, StaleElementReferenceException, TimeoutException

License

GNU General Public License (v3 only)

Release files for thursday 0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thursday 0.1a2
File Size Uploaded
thursday-0.1a2.tar.gz 16.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thursday 0.1a2
File Interpreter ABI Platform
thursday-0.1a2-py3-none-any.whl Python 3 none any Details

Total release size: 34.4 kB

Release files / thursday-0.1a2.tar.gz

Download URL thursday-0.1a2.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
70a72d9963c97c4416bfdd6cd30723009e399ab7a514d17220c13de0035e4cb9
BLAKE2b-256 checksum
How to use checksums
7c85cf98ec10d04d736aa2b83e28e4b15554ff8d0ec9279430f0b6ccec1e2faa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release files / thursday-0.1a2-py3-none-any.whl

Download URL thursday-0.1a2-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16e1ea25c3428d50159d768f70733e989fbbc156282428de161c5e8622498b62
BLAKE2b-256 checksum
How to use checksums
81b9b03da40d6afae509a905ee09a5d2e6aeb4ec688ad25189c2a881d5a9b0a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1a2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page