GetCountElementsAsync

Parent Previous Next

GetCountElementsAsync

Description: the method returns the number of found items

Syntax

GetCountElementsAsync(string by, string locator)

GetCountElementsAsync(Locator locator)

Return value: int


Example:

int count = await tester.GetCountElementsAsync(Tester.BY_CSS, "input");

int count = await tester.GetCountElementsAsync(Tester.BY_XPATH, "//input");


int count = await tester.GetCountElementsAsync(tester.GetLocator("locatorName"));

Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents