Issue with the getXpathCount method
Hi All ,
i am trying to get the Row count of the table.
I used following line of the code to get the row count(Number of Row).
Number rowcount = selenium.getXpathCount("//table[@id='dgrdEmpSearch']/tbody/tr");
Now the issue is its giving result as 0 even if there are more than 5 row in the table.
Please suggest me how to get the row count of the table.
Re: Issue with the getXpathCount method
I think your supplying wrong XPath. that's what selenium returning 0 as the XPath count. Use "XPath Checker" or "Xpather" addins to get the valid XPath..