We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60c11f commit 1dd985bCopy full SHA for 1dd985b
scripts/automated-notebook-run-script.py
@@ -290,6 +290,15 @@ def main():
290
# Select Kernel based on input
291
choose_kernel(driver, args)
292
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
+
302
# This will run all the cells of the chosen notebook
303
run_notebook(driver, notebook_area, args)
304
0 commit comments