Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError while using scroll_to #10

Open
MHFDoge opened this issue Oct 14, 2024 · 0 comments
Open

TypeError while using scroll_to #10

MHFDoge opened this issue Oct 14, 2024 · 0 comments

Comments

@MHFDoge
Copy link

MHFDoge commented Oct 14, 2024

Hi, I seem to be having an issue with using the scroll_to() function with selenium, throwing an error of TypeError: 'float' object cannot be interpreted as an integer.

I don't see any examples documenting how this is supposed to be used, but nothing I've tried seems to be working.
I am selecting the element via XPath, and neither wait.until(EC.element_to_be_clickable((By.XPATH, 'xpath'))) or driver.find_element(By.XPATH, 'xpath') have worked. (even with a generic 5-second delay between page load and it finding the element). Any assistance with this would be appreciated, as I am at a loss for what to do to fix this.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant