Selenium Java - Actions Class
Consider the following code snippet:
What will be printed if the tooltip appears only after mouse hover?
WebElement menu = driver.findElement(By.id("menu"));
Actions actions = new Actions(driver);
actions.moveToElement(menu).perform();
String tooltip = driver.findElement(By.id("tooltip")).getText();
System.out.println(tooltip);What will be printed if the tooltip appears only after mouse hover?
