ScrollToElementAsync

Parent Previous Next

ScrollToElementAsync

Description: the method scrolls to the specified element (the behaviorSmooth parameter determines the smoothness of scrolling)

Syntax: ScrollToElementAsync(string by, string locator, bool behaviorSmooth = false)

Return value: no return value


Example:

await tester.ScrollToElementAsync(Tester.BY_CSS, "body > footer", true);


await tester.ScrollToElementAsync(Tester.BY_XPATH, "/html/body/footer", true);

Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation