<button class="btn">Enable</button>
This is my button element. I want to retrieve "Enable" back to my program.
if(driver.findElement(By.xpath("/html/body/div/div/div[2]/div/div/div[2]/div/div/div/div/div/table/tbody/tr[16]/td[4]/div/button")).getText.matches("Enable"))
{
System.out.println("Test Pass");
//return true;
}
else
{System.out.println("Test Failed");
//return false;
}