I am trying to scroll the popup modal using following code but background page gets scrolled and not the popup window.
How should I scroll the popup modal in selenium java?
driver.switchTo().activeElement();
JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("window.scrollBy(0,250)", "");
Aucun commentaire:
Enregistrer un commentaire