Skip to content

Commit

Permalink
Fix scrolling issue when loading more recipes (issue auino#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloaq committed Jun 4, 2024
1 parent 1b757ae commit 97d538c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookidump.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def run(webdriverfile, outputdir, separate_json):
time.sleep(SCROLL_TO)
# clicking on the "load more recipes" button
try:
brw.find_element(By.ID, 'load-more-page').click()
brw.find_element(By.XPATH, "//button[@data-cy='load-more-button']").click()
time.sleep(PAGELOAD_TO)
except: pass
print('Scrolling [{}/{}]'.format(currentElements, elementsToBeFound))
Expand Down

0 comments on commit 97d538c

Please sign in to comment.