Skip to content

Commit 2ff3fb2

Browse files
rename + revert timeout
1 parent c88ea49 commit 2ff3fb2

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

webdriver/tests/classic/perform_actions/key.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ def test_key_down_closes_browsing_context(
3030
""")
3131

3232
# 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
3536

3637
# Switch to the new window.
3738
session.window_handle = new_window_handle
3839

3940
with pytest.raises(NoSuchWindowException):
4041
key_chain.key_down("w") \
41-
.pause(250 * configuration["timeout_multiplier"]) \
42+
.pause(100 * configuration["timeout_multiplier"]) \
4243
.key_up("w") \
4344
.perform()
4445

webdriver/tests/classic/perform_actions/pointer_mouse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def test_pointer_down_closes_browsing_context(
3939
url = inline("""<input onpointerdown="window.close()">close</input>""")
4040

4141
# 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
4444

4545
# Switch to the new window.
4646
session.window_handle = new_window_handle
@@ -51,7 +51,7 @@ def test_pointer_down_closes_browsing_context(
5151
with pytest.raises(NoSuchWindowException):
5252
mouse_chain.pointer_move(0, 0, origin=origin) \
5353
.pointer_down(button=0) \
54-
.pause(250 * configuration["timeout_multiplier"]) \
54+
.pause(100 * configuration["timeout_multiplier"]) \
5555
.pointer_up(button=0) \
5656
.perform()
5757

webdriver/tests/classic/perform_actions/pointer_pen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def test_pointer_down_closes_browsing_context(
3636
url = inline("""<input onpointerdown="window.close()">close</input>""")
3737

3838
# 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
4141

4242
# Switch to the new window.
4343
session.window_handle = new_window_handle
@@ -48,7 +48,7 @@ def test_pointer_down_closes_browsing_context(
4848
with pytest.raises(NoSuchWindowException):
4949
pen_chain.pointer_move(0, 0, origin=origin) \
5050
.pointer_down(button=0) \
51-
.pause(250 * configuration["timeout_multiplier"]) \
51+
.pause(100 * configuration["timeout_multiplier"]) \
5252
.pointer_up(button=0) \
5353
.perform()
5454

webdriver/tests/classic/perform_actions/pointer_touch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def test_pointer_down_closes_browsing_context(
3535
url = inline("""<input onpointerdown="window.close()">close</input>""")
3636

3737
# 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
4040

4141
# Switch to the new window.
4242
session.window_handle = new_window_handle
@@ -47,7 +47,7 @@ def test_pointer_down_closes_browsing_context(
4747
with pytest.raises(NoSuchWindowException):
4848
touch_chain.pointer_move(0, 0, origin=origin) \
4949
.pointer_down(button=0) \
50-
.pause(250 * configuration["timeout_multiplier"]) \
50+
.pause(100 * configuration["timeout_multiplier"]) \
5151
.pointer_up(button=0) \
5252
.perform()
5353

0 commit comments

Comments
 (0)