ISelenium GetXpathCount Method WebDriver
Returns the number of nodes that match the specified xpath, eg. "//table" would give the number of tables.

Namespace: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

decimal GetXpathCount(
	string xpath
)

Parameters

xpath
Type: OnlineSystem String
the xpath expression to evaluate. do NOT wrap this expression in a 'count()' function; we will do that for you.

Return Value

the number of nodes that match the specified xpath
See Also