Clicking a web element on mouse-over



Below is the sample code which helps for mouseover in selenium webdriver
public void mouseover(String x){
   
 WebElement wel = driver.findElement(By.id(x));
System.out.println(":::::::::: String the id is :"+x);
Actions builder = new Actions(driver);
builder.moveToElement(wel).click(wel);
builder.perform();
}

Comments

Popular posts from this blog

getting future date

To check if Web Element is present