Skip to content

Commit bb4d3ff

Browse files
authored
Try to fix previous commit
1 parent 3ba06ed commit bb4d3ff

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/automated-notebook-run-script.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,10 @@ def run_notebook(driver, notebook_area, args):
140140
# happens, but this section is here to try and detect these occurances, and rerun the notebook
141141
# from the start if this occurs.
142142
print("Parsing failed detected. Restarting notebook run.")
143-
restart_button = wait.until(
144-
EC.element_to_be_clickable((
145-
By.CSS_SELECTOR,
146-
"div.lm-Widget.jp-CommandToolbarButton.jp-Toolbar-item[data-jp-item-name='restart'] jp-button"
147-
))
143+
restart_button = driver.find_element(
144+
By.CSS_SELECTOR, "div.lm-Widget.jp-CommandToolbarButton.jp-Toolbar-item[data-jp-item-name='restart'] jp-button"
148145
)
146+
time.sleep(0.25)
149147
restart_button.click()
150148
ActionChains(driver).send_keys(Keys.ENTER).perform()
151149
current_cell = rewind_to_first_cell(current_cell)

0 commit comments

Comments
 (0)