element scroll in to view using coordinates – selenium webdriver
import org.openqa.selenium.interactions.internal.Coordinates;
import org.openqa.selenium.internal.Locatable;
WebElement element = driver.findElement(By.xpath(“xpah”‘));
Coordinates coordinate = ((Locatable)element).getCoordinates();
coordinate.inViewPort();
No images available.