File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
webdriver/tests/classic/perform_actions Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,16 @@ def test_key_down_closes_browsing_context(
30
30
""" )
31
31
32
32
# Open a new window.
33
- resp = session .execute_script (f"return window.open('{ url } ')" )
34
- new_window_handle = resp .id
33
+ new_window = session .execute_script (f"return window.open('{ url } ')" )
34
+
35
+ new_window_handle = new_window .id
35
36
36
37
# Switch to the new window.
37
38
session .window_handle = new_window_handle
38
39
39
40
with pytest .raises (NoSuchWindowException ):
40
41
key_chain .key_down ("w" ) \
41
- .pause (250 * configuration ["timeout_multiplier" ]) \
42
+ .pause (100 * configuration ["timeout_multiplier" ]) \
42
43
.key_up ("w" ) \
43
44
.perform ()
44
45
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ def test_pointer_down_closes_browsing_context(
39
39
url = inline ("""<input onpointerdown="window.close()">close</input>""" )
40
40
41
41
# Open a new window.
42
- resp = session .execute_script (f"return window.open('{ url } ')" )
43
- new_window_handle = resp .id
42
+ new_window = session .execute_script (f"return window.open('{ url } ')" )
43
+ new_window_handle = new_window .id
44
44
45
45
# Switch to the new window.
46
46
session .window_handle = new_window_handle
@@ -51,7 +51,7 @@ def test_pointer_down_closes_browsing_context(
51
51
with pytest .raises (NoSuchWindowException ):
52
52
mouse_chain .pointer_move (0 , 0 , origin = origin ) \
53
53
.pointer_down (button = 0 ) \
54
- .pause (250 * configuration ["timeout_multiplier" ]) \
54
+ .pause (100 * configuration ["timeout_multiplier" ]) \
55
55
.pointer_up (button = 0 ) \
56
56
.perform ()
57
57
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ def test_pointer_down_closes_browsing_context(
36
36
url = inline ("""<input onpointerdown="window.close()">close</input>""" )
37
37
38
38
# Open a new window.
39
- resp = session .execute_script (f"return window.open('{ url } ')" )
40
- new_window_handle = resp .id
39
+ new_window = session .execute_script (f"return window.open('{ url } ')" )
40
+ new_window_handle = new_window .id
41
41
42
42
# Switch to the new window.
43
43
session .window_handle = new_window_handle
@@ -48,7 +48,7 @@ def test_pointer_down_closes_browsing_context(
48
48
with pytest .raises (NoSuchWindowException ):
49
49
pen_chain .pointer_move (0 , 0 , origin = origin ) \
50
50
.pointer_down (button = 0 ) \
51
- .pause (250 * configuration ["timeout_multiplier" ]) \
51
+ .pause (100 * configuration ["timeout_multiplier" ]) \
52
52
.pointer_up (button = 0 ) \
53
53
.perform ()
54
54
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ def test_pointer_down_closes_browsing_context(
35
35
url = inline ("""<input onpointerdown="window.close()">close</input>""" )
36
36
37
37
# Open a new window.
38
- resp = session .execute_script (f"return window.open('{ url } ')" )
39
- new_window_handle = resp .id
38
+ new_window = session .execute_script (f"return window.open('{ url } ')" )
39
+ new_window_handle = new_window .id
40
40
41
41
# Switch to the new window.
42
42
session .window_handle = new_window_handle
@@ -47,7 +47,7 @@ def test_pointer_down_closes_browsing_context(
47
47
with pytest .raises (NoSuchWindowException ):
48
48
touch_chain .pointer_move (0 , 0 , origin = origin ) \
49
49
.pointer_down (button = 0 ) \
50
- .pause (250 * configuration ["timeout_multiplier" ]) \
50
+ .pause (100 * configuration ["timeout_multiplier" ]) \
51
51
.pointer_up (button = 0 ) \
52
52
.perform ()
53
53
You can’t perform that action at this time.
0 commit comments