File tree Expand file tree Collapse file tree 4 files changed +4
-9
lines changed
webdriver/tests/classic/perform_actions Expand file tree Collapse file tree 4 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,8 @@ def test_key_down_closes_browsing_context(
32
32
# Open a new window.
33
33
new_window = session .execute_script (f"return window.open('{ url } ')" )
34
34
35
- new_window_handle = new_window .id
36
-
37
35
# Switch to the new window.
38
- session .window_handle = new_window_handle
36
+ session .window_handle = new_window . id
39
37
40
38
with pytest .raises (NoSuchWindowException ):
41
39
key_chain .key_down ("w" ) \
Original file line number Diff line number Diff line change @@ -40,10 +40,9 @@ def test_pointer_down_closes_browsing_context(
40
40
41
41
# Open a new window.
42
42
new_window = session .execute_script (f"return window.open('{ url } ')" )
43
- new_window_handle = new_window .id
44
43
45
44
# Switch to the new window.
46
- session .window_handle = new_window_handle
45
+ session .window_handle = new_window . id
47
46
48
47
# Get the input element.
49
48
origin = session .find .css ("input" , all = False )
Original file line number Diff line number Diff line change @@ -37,10 +37,9 @@ def test_pointer_down_closes_browsing_context(
37
37
38
38
# Open a new window.
39
39
new_window = session .execute_script (f"return window.open('{ url } ')" )
40
- new_window_handle = new_window .id
41
40
42
41
# Switch to the new window.
43
- session .window_handle = new_window_handle
42
+ session .window_handle = new_window . id
44
43
45
44
# Get the input element.
46
45
origin = session .find .css ("input" , all = False )
Original file line number Diff line number Diff line change @@ -36,10 +36,9 @@ def test_pointer_down_closes_browsing_context(
36
36
37
37
# Open a new window.
38
38
new_window = session .execute_script (f"return window.open('{ url } ')" )
39
- new_window_handle = new_window .id
40
39
41
40
# Switch to the new window.
42
- session .window_handle = new_window_handle
41
+ session .window_handle = new_window . id
43
42
44
43
# Get the input element.
45
44
origin = session .find .css ("input" , all = False )
You can’t perform that action at this time.
0 commit comments