Skip to content

Commit d269289

Browse files
committed
Switch context back to content fix
1 parent 32ebed0 commit d269289

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/address_bar_and_search/test_adaptive_history_autofill.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ def test_add_adaptive_history_autofill(driver: Firefox):
4444
EC.url_contains("https://www.nationalgeographic.com/science/")
4545
)
4646

47+
tabs.set_content_context()
48+
4749
# Open a new tab, type the first 3 characters of the visited URL
4850
tabs.new_tab_by_button()
51+
tabs.wait_for_num_tabs(2)
4952
driver.switch_to.window(driver.window_handles[-1])
5053
nav.type_in_awesome_bar("nat")
5154

0 commit comments

Comments
 (0)