When i am writing the code to hover an element and click in sub menu outside my framework it is working fine .
Below is the code :
WebElement element = driver.findElement(By.partialLinkText("Scorecards"));
Actions action = new Actions(driver);
action.moveToElement(element).build().perform();
IS there any other way to get the hover done ?