I want to capture the tooltip of Business menu using Selenium JAva..I used javascript and action class to mouse over, but failed to capture the tooltip... Below is my part of code..Any help is appreciated...
the web is "https://www.rediff.com/news"..Sel
By tooltip = By.xpath("/html/body/div[5]/div[1]/ul/li[3]/a");
String TP_realtime = driver.findElement(tooltip).getAttribute("title");
System.out.println("Tooltip is " + TP_realtime );
WebElement realtime = driver.findElement(tooltip);
js.executeScript("arguments[0].scrollIntoView();", realtime);
Thread.sleep(1000);
action.moveToElement(realtime).build().perform();
Thread.sleep(6000);
utils.HelperFunctions.captureScreenShot(driver, filename2);