you need to raise the WebDriverWait because it seems that 10 sec is not enough, try raising it to 30 sec and then reduce it until you find the minimum that the script should wait, if the element is not located yet try to use this path
//span[text()='X']