Sriram N
Sriram N

Reputation: 3

scroll a webpage using selenium webdriver in c #

How to scroll a webpage using selenium web driver in c #? Currently i am not able to scroll down a web page .I don't need to know how to scroll an element.

Upvotes: 0

Views: 3889

Answers (1)

DDave
DDave

Reputation: 618

What actually you can do is, you can check the element till where you want to scroll down and perform an action,

WebElement element = driver.findElement(By.id("youElementID"));
Actions act = new Actions(driver);
act.moveToElement(element);
act.perform();

Upvotes: 2

Related Questions