Skip to content

Commit

Permalink
click Sn element
Browse files Browse the repository at this point in the history
  • Loading branch information
Dou Du committed May 29, 2024
1 parent cf365e1 commit 3bc71d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
"version": "3.11.7"
},
"voila": {
"authors": "Dou Du, Casper Welzel Andersen and Giovanni Pizzi"
Expand Down
4 changes: 3 additions & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def download_widget_image(self):
self.driver.set_window_size(1280, 1080)
time.sleep(3)
self.driver.save_screenshot("widget-01.png")
self.driver.execute_script("window.scrollTo(0,document.body.scrollHeight)")

element = driver.find_element(By.CLASS_NAME, 'element-Sn')
element.click()
time.sleep(3)
self.driver.save_screenshot("widget-02.png")

Expand Down

0 comments on commit 3bc71d2

Please sign in to comment.