Skip to content

Commit 1276ebb

Browse files
committed
Try to fix previous commit
1 parent abdd3e2 commit 1276ebb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/automated-notebook-run-script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ def run_notebook(driver, notebook_area, args):
122122
notebook_area.send_keys(Keys.SHIFT, Keys.ENTER)
123123
# This sleep is there is allow time for the box for standard input
124124
# to appear, if it needs to after executing the cell
125-
time.sleep(0.2)
125+
time.sleep(0.1)
126126
if not cell_is_waiting_for_input(driver):
127127
wait_for_idle_status(driver, current_cell, start_time, args.timeout)
128-
next_cell = current_cell.find_elements(
128+
next_cell = current_cell.find_element(
129129
By.XPATH,
130-
"following-sibling::div[contains(@class,'jp-Notebook-cell')][1]"
130+
"following-sibling::div[contains(@class,'jp-Notebook-cell')][1]",
131131
)
132-
current_cell = next_cell[0]
132+
current_cell = next_cell
133133

134134
def download_notebook(driver):
135135
"""This function is used to download the notebook currently open."""

0 commit comments

Comments
 (0)