I am trying to find an element by text and depending if it is found or not print an output to the screen
This is what I have so far but I just cant get it to work
if driver.find_element_by_xpath("//*[contains(text(),'addFromWishlist')]").isEmpty()
{
System.out.println("In stock");
}
else{
System.out.println("Not In Stock");
}