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?