uezo / TinySeleniumVBA

A tiny Selenium wrapper written in pure VBA
MIT License
60 stars 17 forks source link

Add More Scroll Functionality #55

Closed GCuser99 closed 2 years ago

GCuser99 commented 2 years ago

Propose to add ScrollIntoView, ScrollBy, ScrollTo, ScrollToTop, ScrollToBottom, GetScrollHeight...

Please Note: ScrollIntoView and my version of ExecuteScript both take a WebElement (not a WebElement ID string) as argument - see WebElement ID Issue discussion...

Also, could add following related sub to WebElement Class:

Public Sub ScrollIntoView(Optional ByVal AlignTop As Boolean = True)
    Driver_.ScrollIntoView Me, AlignTop, SessionId_
End Sub
uezo commented 2 years ago

@GCuser99 Thank you! This PR requires ExecuteScript, doesn't it?