Skip to content

Commit

Permalink
use key page down instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Dou Du committed Jun 13, 2024
1 parent 06f7b84 commit 01ca9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def download_widget_image(self):
self.driver.save_screenshot("widget-01.png")

body = self.driver.find_element(By.TAG_NAME, 'body')
body.click()
body.send_keys(Keys.PAGE_DOWN)

self.driver.execute_script("window.scrollTo(0, 1000)")
#self.driver.execute_script("window.scrollTo(0, 1000)")
time.sleep(3)
self.driver.save_screenshot("widget-02.png")

Expand Down

0 comments on commit 01ca9e6

Please sign in to comment.