Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

How to mouse hover on a web element using WebDriver?

Category: Selenium WebDriver

WebElement ele = driver.findElement(By.xpath(“xpath”));
//Create object ‘action’ of an Actions class
Actions action = new Actions(driver);
//Mouseover on an element
action.moveToElement(ele).perform();

Leave a Reply

Your email address will not be published. Required fields are marked *