Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97891

how to get text from Ngx data table using Xpath selenium java

$
0
0
WebElement NumberofRecord = driver.findElement(By.xpath("//*[@id=\"tableContent\"]/div[2]/span/a"));
NumberofRecord.getText();               

System.out.println(NumberofRecord);

trying to get text buts returning URL

Result: In get text returning fallwing data xpath: //*[@id="tableContent"]/div[2]/span/a]

Expected data: All 18418 Messages in Table are selected. Clear selection(this need to be displayed)


Viewing all articles
Browse latest Browse all 97891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>