Skip to content

Commit 03bbc7b

Browse files
committed
run format.sh
1 parent 9e5a5ca commit 03bbc7b

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

py/selenium/webdriver/common/bidi/browsing_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from typing import Union
2222

2323
from selenium.webdriver.common.bidi.common import command_builder
24+
2425
# TODO: use new session module when https://github.com/SeleniumHQ/selenium/pull/15615 is merged
2526
from selenium.webdriver.common.bidi.session import session_subscribe
2627
from selenium.webdriver.common.bidi.session import session_unsubscribe

py/test/selenium/webdriver/common/bidi_browsing_context_tests.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@
2626
from selenium.webdriver.support.ui import WebDriverWait
2727

2828

29+
def create_alert_page(driver, pages):
30+
"""Create a page with an alert."""
31+
url = pages.url("alerts.html")
32+
driver.get(url)
33+
return url
34+
35+
36+
def create_prompt_page(driver, pages):
37+
"""Create a page with a prompt."""
38+
url = pages.url("javascriptPage.html")
39+
driver.get(url)
40+
return url
41+
42+
2943
def test_browsing_context_initialized(driver):
3044
"""Test that the browsing context module is initialized properly."""
3145
assert driver.browsing_context is not None
@@ -233,20 +247,6 @@ def test_reload_with_readiness_state(driver, pages):
233247
driver.browsing_context.close(context_id)
234248

235249

236-
def create_alert_page(driver, pages):
237-
"""Create a page with an alert."""
238-
url = pages.url("alerts.html")
239-
driver.get(url)
240-
return url
241-
242-
243-
def create_prompt_page(driver, pages):
244-
"""Create a page with a prompt."""
245-
url = pages.url("javascriptPage.html")
246-
driver.get(url)
247-
return url
248-
249-
250250
def test_handle_user_prompt(driver, pages):
251251
"""Test handling a user prompt."""
252252
context_id = driver.current_window_handle

0 commit comments

Comments
 (0)