Here is my HTML code
<p> <strong>Telephone:</strong> 1(111)656-3485 <br/>
Selenium has functions to get the text from WebElements, you don't need to extract the text in your xpath. Use.
driver.findElement(By.xpath("//strong")).getText();
1.4m articles
1.4m replys
5 comments
57.0k users