vendredi 22 mai 2020

selenium Java script shows error in "jse.executeScript" for scrolling down a webpage

Below is the code which i used

JavascriptExecutor jse = (JavascriptExecutor)driver; WebElement blueray = driver.findElement(By.xpath("Xpath ID")]"));

    jse.executeScript("scroll(0,250)", blueray);

Below is the error code

The method executeScript(String, Object[]) in the type JavascriptExecutor is not applicable for the arguments (String, WebElement)

Aucun commentaire:

Enregistrer un commentaire