Skip to content

Commit c5a49c3

Browse files
committed
remove some context switching
1 parent f441f05 commit c5a49c3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/security_and_privacy/test_undo_close_tab_private_browsing.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ def test_undo_close_tab_private_browsing(driver: Firefox, sys_platform: str):
3131
tabs.switch_to_new_tab()
3232

3333
# navigate to the URL
34-
with driver.context(driver.CONTEXT_CHROME):
35-
nav.search(VISIT_URL)
34+
nav.search(VISIT_URL)
3635

3736
# ensure its loaded
3837
generic_page.url_contains("about:about")
3938

4039
# close the most recent window
41-
with driver.context(driver.CONTEXT_CHROME):
42-
cur_tab = tabs.get_tab_by_title("About About")
43-
tabs.close_tab(cur_tab)
40+
cur_tab = tabs.get_tab_by_title("About About")
41+
tabs.close_tab(cur_tab)
4442

4543
# ensuring that one of the tabs was closed properly
4644
tabs.wait_for_num_tabs(2)

0 commit comments

Comments
 (0)