代码:
String str = new String("三连号".getBytes(), "UTF-8");
WebDriverWait wait = new WebDriverWait(driver, 60);
element = wait
.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//span[@class='content' and contains(text(),'"+str+"')]")));