Skip to content

Commit

Permalink
more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Dec 19, 2024
1 parent d416687 commit 33f58c5
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions jupyter-pystata-gen3-licensed/resources/setup_licensed_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,40 @@

actions = ActionChains(browser)
actions.pause(5)

actions.perform()
browser.save_screenshot('0.png')
# Down-arrow to get to the second cell in the notebook
actions.send_keys(Keys.DOWN)
actions.pause(1)
actions.perform()

browser.save_screenshot('1.png')
#actions.perform()
#browser.save_screenshot('1-1.png')
# Run the stata setup cell
print("Ready to run stata setup cell")
actions.key_down(Keys.SHIFT)
actions.send_keys(Keys.ENTER)
actions.key_up(Keys.SHIFT)
actions.pause(5)
actions.perform()
actions.pause(10)
browser.save_screenshot('2.png')

#print("Ready to run stata setup cell2")
#actions.key_down(Keys.SHIFT)
#actions.send_keys(Keys.ENTER)
#actions.key_up(Keys.SHIFT)
#actions.pause(10)
#actions.perform()
#browser.save_screenshot('2-1.png')

# Save notebook with output
print("Ready to save notebook")
actions.key_down(Keys.CONTROL)
actions.send_keys("S")
actions.key_up(Keys.CONTROL)
actions.pause(5)
actions.perform()
actions.send_keys(Keys.ENTER)
actions.pause(1)
actions.perform()
browser.save_screenshot('3.png')

0 comments on commit 33f58c5

Please sign in to comment.