Skip to content

Commit 61cba6f

Browse files
committed
Try to fix previous commit
1 parent ac88878 commit 61cba6f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

scripts/automated-notebook-run-script.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,19 @@ def run_notebook(driver, notebook_area, args):
103103
"arguments[0].scrollIntoView({block:'center'});", next_cell
104104
)
105105
next_cell.click()
106-
if args.driver == "safari":
107-
driver.execute_script(
108-
"""
109-
const evt = new KeyboardEvent('keydown', {
110-
key: 'Enter',
111-
code: 'Enter',
112-
keyCode: 13,
113-
which: 13,
114-
shiftKey: true,
115-
bubbles: true
116-
});
117-
document.activeElement.dispatchEvent(evt);
118-
"""
119-
)
106+
driver.execute_script(
107+
"""
108+
const evt = new KeyboardEvent('keydown', {
109+
key: 'Enter',
110+
code: 'Enter',
111+
keyCode: 13,
112+
which: 13,
113+
shiftKey: true,
114+
bubbles: true
115+
});
116+
document.activeElement.dispatchEvent(evt);
117+
"""
118+
)
120119
wait_for_idle_status(driver, current_cell, start_time, args.timeout)
121120
current_cell = next_cell
122121

0 commit comments

Comments
 (0)