little fix
This commit is contained in:
parent
4554a8e4ec
commit
b75055e076
2 changed files with 4 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -26,7 +26,9 @@ share/python-wheels/
|
||||||
.installed.cfg
|
.installed.cfg
|
||||||
*.egg
|
*.egg
|
||||||
MANIFEST
|
MANIFEST
|
||||||
|
chrome_profile/*
|
||||||
|
data_folder/*
|
||||||
|
answers.json
|
||||||
# PyInstaller
|
# PyInstaller
|
||||||
# Usually these files are written by a python script from a template
|
# 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.
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ def scroll_slow(driver, scrollable_element, start=0, end=3600, step=300, reverse
|
||||||
raise ValueError("Step cannot be zero.")
|
raise ValueError("Step cannot be zero.")
|
||||||
|
|
||||||
max_scroll_height = int(scrollable_element.get_attribute("scrollHeight"))
|
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"Max scroll height of the element: {max_scroll_height}")
|
||||||
logger.debug(f"Current scroll position: {current_scroll_position}")
|
logger.debug(f"Current scroll position: {current_scroll_position}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue