Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created June 7, 2024 06:07
Show Gist options
  • Save SarahElson/9d06c9b2ec2d3710b2ac0476f828dc9f to your computer and use it in GitHub Desktop.
Save SarahElson/9d06c9b2ec2d3710b2ac0476f828dc9f to your computer and use it in GitHub Desktop.
How to Wait in Python: Python Wait Tutorial With Examples
import pytest
from pages.smartwait import *
@pytest.mark.usefixtures("driver")
def test_blog_navigation(driver):
smartwait = SmartWait(driver)
smartwait.click_blog_link()
smartwait.click_first_post()
assert "amet volutpat" in driver.title, "Expected 'amet volutpat' in title"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment