kaliiiiiiiiii / Selenium-Driverless

undetected Selenium without usage of chromedriver
https://kaliiiiiiiiii.github.io/Selenium-Driverless/
Other
412 stars 52 forks source link

[Feature Request] Stealth scrolling #120

Closed Vadhvis closed 7 months ago

Vadhvis commented 7 months ago

Some websites require scrolling to fully load the data (ie: Bet365 is an example). However, said websites often have overflow in inner divs that require selection through js to be able to scroll them breaking any stealth measures of this library.

Would it be possible to add internal functions to scroll selected elements through selenium?

kaliiiiiiiiii commented 7 months ago

elem.scroll_to() Pretty sure it's already implemented

Not perfect regarding behaviour analysis, but should be better than JS

kaliiiiiiiiii commented 7 months ago

https://github.com/kaliiiiiiiiii/Selenium-Driverless/blob/c207798337d07e6fd98dc44e86ed5b59f3c67f48/src/selenium_driverless/types/webelement.py#L612-L621

Vadhvis commented 7 months ago

Not sure how I missed that, thanks a lot!

kaliiiiiiiiii commented 7 months ago

Not sure how I missed that, thanks a lot!

no worries:) Isn't documented at all:)