Automation Question:
Download Job Interview Questions and Answers PDF
Do you know how to mouse hover an element in Selenium?
Answer:
Code to mouse hover over an element in Selenium:
Actions action = new Actions(driver);
WebElement element=driver.findElement(By.id("elementId"));
action.moveToElement(element).perform();
Actions action = new Actions(driver);
WebElement element=driver.findElement(By.id("elementId"));
action.moveToElement(element).perform();
Download Automation Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell us how do you get the width of the textbox? | Do you know how to verify if the checkbox/radio is checked or not? |