funmay
8 years agoContributor
How can i Scroll to view an element and click in TestComplete with Javascript?
How can i Scroll to view an element and click in TestComplete with Javascript for web testing? Does TestComplete supports this control(Scroll into view element ).
See the example of selenium code controls below:
var element = driver.FindElement(By.id("element-id"));
Actions actions = new Actions(driver);
actions.MoveToElement(element);
actions.Perform();
-------------------------------------------------------------------------------------------------
See the example of selenium code with Javascript:
(JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element);