Built-in Utilities
Speed up your development cycle with a curated set of robust utilities included in the Base class, pre-configured with explicit waits and reliable DOM interactions.
Core Methods
Here are some of the most frequently used functions provided natively:
Clicking Elements
Waits for an element to be clickable before performing the action:
self.click_element((By.ID, "submit-btn"), timeout=10)
Typing Text
Clears the field and enters text after ensuring the input element is ready:
self.type_text((By.NAME, "email"), "user@example.com")
Assertions & Verification
Quick checks to synchronize automation flows securely:
is_visible = self.is_element_visible((By.CLASS_NAME, "success-msg"))
text_content = self.get_element_text((By.XPATH, "//header/h1"))
Advanced Waiting
Selenium can be flaky; Promethee's utilities wrap standard WebDriverWaits efficiently to prevent stale elements and synchronization bugs.