Skip to content

Commit 1dd985b

Browse files
authored
Update automated-notebook-run-script.py
1 parent d60c11f commit 1dd985b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/automated-notebook-run-script.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,15 @@ def main():
290290
# Select Kernel based on input
291291
choose_kernel(driver, args)
292292

293+
# For reasons I don't understand sometimes
294+
# in the ci the notebook doesn't always start at the
295+
# first cell in Safari, which causes random failures
296+
# 9 UPs is random choice, and mostly chosen
297+
# to be largely enough that guaranteed to be at
298+
# start of notebook.
299+
if args.driver == "safari":
300+
notebook_area.send_keys(Keys.ESCAPE).pause(0.01).send_keys(Keys.UP * 9).perform()
301+
293302
# This will run all the cells of the chosen notebook
294303
run_notebook(driver, notebook_area, args)
295304

0 commit comments

Comments
 (0)