little fix

This commit is contained in:
feder-cr 2024-09-13 18:20:04 +02:00
parent 4554a8e4ec
commit b75055e076
2 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View file

@ -26,7 +26,9 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
chrome_profile/*
data_folder/*
answers.json
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.

View file

@ -66,7 +66,7 @@ def scroll_slow(driver, scrollable_element, start=0, end=3600, step=300, reverse
raise ValueError("Step cannot be zero.")
max_scroll_height = int(scrollable_element.get_attribute("scrollHeight"))
current_scroll_position = int(scrollable_element.get_attribute("scrollTop"))
current_scroll_position = int(float(scrollable_element.get_attribute("scrollTop")))
logger.debug(f"Max scroll height of the element: {max_scroll_height}")
logger.debug(f"Current scroll position: {current_scroll_position}")