Skip to content

Commit f0fd095

Browse files
committed
Update automated-notebook-run-script.py
1 parent f144142 commit f0fd095

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/automated-notebook-run-script.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def main():
115115
focused_cell = driver.find_element(
116116
By.CSS_SELECTOR, ".jp-Notebook-cell.jp-mod-selected"
117117
)
118-
118+
print(focused_cell.text)
119119
editor_divs = focused_cell.find_elements(
120120
By.CSS_SELECTOR, ".jp-InputArea-editor div"
121121
)
@@ -155,12 +155,11 @@ def main():
155155
elif args.driver == "safari":
156156
print("Running all cells using Shift+Enter...")
157157
while True:
158-
# Focused cell
159158
focused_cell = driver.find_element(
160159
By.CSS_SELECTOR, ".jp-Notebook-cell.jp-mod-selected"
161160
)
161+
print(focused_cell.text)
162162

163-
# Get the cell content text reliably in Safari
164163
editor_divs = focused_cell.find_elements(
165164
By.CSS_SELECTOR, ".jp-InputArea-editor div"
166165
)

0 commit comments

Comments
 (0)