SyntaxFix
Write A Post
Hire A Developer
Questions
Use xpath and text()
driver.findElement(By.Xpath("//strong[contains(text(),'" + service +"')]"));