WaitElementInDomAsync

Parent Previous Next

WaitElementInDomAsync

Description: the method temporarily stops the test execution for the specified number of seconds and waits for the requested element to appear in the DOM

Syntax

WaitElementInDomAsync(string by, string locator, int sec)

WaitElementInDomAsync(Locator locator, int sec)

Return value: no return value


Example:

await tester.WaitElementInDomAsync(Tester.BY_XPATH, "//div[@id='result']", 5);

await tester.WaitElementInDomAsync(Tester.BY_CSS, "#result", 5);


await tester.WaitElementInDomAsync(tester.GetLocator("locatorName"), 5);

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