How do I scroll through Google Maps results to get more items in my list? I’m not sure whether I should use the class attribute or another method. Please help me with automatically scrolling until all results are loaded.

Do Until count = 30
        driver.FindElementsByClass("m6QErb").ExecuteScript ("return window.pageYOffset;")
    count = count + 1
    Loop
I have tried many option (as shown below), but not get success.

driver.SendKeys "{pgdn}" driver.SendKeys ks.PageDown
driver.FindElementByClass("m6QErb DxyBCb kA9KIf dS8AEf XiKgde ecceSd").SendKeys ks.PageDown

2024-07-27_11-19-44.png