Created
June 7, 2024 06:07
-
-
Save SarahElson/9d06c9b2ec2d3710b2ac0476f828dc9f to your computer and use it in GitHub Desktop.
How to Wait in Python: Python Wait Tutorial With Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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