Skip to content

Commit

Permalink
update the test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dou Du committed Jun 16, 2024
1 parent 78390d3 commit 9145f20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_elements(self):

def download_widget_image(self):
self.driver.get("http://localhost:8383/voila/render/example.ipynb")
self.driver.set_window_size(1280, 1080)
self.driver.set_window_size(1280, 2000)
time.sleep(3)
self.driver.save_screenshot("widget-01.png")

Expand All @@ -45,6 +45,11 @@ def download_widget_image(self):
time.sleep(3)
self.driver.save_screenshot("widget-02.png")

#Move the end of the page
self.driver.find_element(By.TAG_NAME, 'body').send_keys(Keys.END)
time.sleep(3)
self.driver.save_screenshot("widget-03.png")

test = test_widget()
test.setup_method('Chrome')
test.download_widget_image()
Expand Down

0 comments on commit 9145f20

Please sign in to comment.