WebElement NumberofRecord = driver.findElement(By.xpath("//*[@id=\"tableContent\"]/div[2]/span/a"));
NumberofRecord.getText();
System.out.println(NumberofRecord);
пытается получить текст, но возвращает URL
Результат: xpath: // * [@ id = "tableContent"] / div [2] / span / a]
Expected Output: All 18418 Messages in Table are selected. Clear selection(this need to be displayed)
![enter image description here](https://i.stack.imgur.com/M8UxQ.png)