Skip to content

Commit 07d69d6

Browse files
committed
wait for page load before continuing in test_simple_page_load
1 parent 24ce87e commit 07d69d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_mixin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,6 @@ def test_deprecation_warning_for_ensure_element_locators_with_underscores(sessio
107107
def test_simple_page_load(session: requestium.Session, example_html: str) -> None:
108108
session.driver.get(f"data:text/html,{example_html}")
109109

110+
session.driver.ensure_element_by_tag_name("h1") # wait for page load
110111
title = session.driver.title
111112
assert title == "The Internet"

0 commit comments

Comments
 (0)