I have two paths :
driver.findElement(By.xpath("//tr[@id='"+variable+"']/td[5]/span")).click();
driver.findElement(By.xpath("//tr[@id='"+variable+"']/td[5]")).click();
How can I handle both via contains so that the first or second version will be searched - with one constancy.