0
    public void ScrollRight()
    {
        Sleep(100);
        Actions action = new Actions(driver);
        Sleep(100);
        action.SendKeys(Keys.Right).Build().Perform();
    }

I have just typed this function in order to scroll. This function could not be worked in vs code. How can I scroll right or left?

  • CAn't you just use this answer? https://stackoverflow.com/a/12293212/1663001 – DavidG Jun 17 '21 at 08:50
  • _"This function could not be worked in vs code"_ - Do you mean it works elsewhere, but there's just an issue running it via VS Code? – ProgrammingLlama Jun 17 '21 at 08:51
  • I think your answers can be found on older threads: [42507826](https://stackoverflow.com/questions/42507826/how-to-do-horizontal-scroll-using-selenium-webdriver), and [39241231](https://stackoverflow.com/questions/39241231/scroll-horizontal-in-c-sharp-selenium) – TMmn Jun 17 '21 at 08:54

0 Answers0