WaitNotVisibleElementAsync

Parent Previous Next

WaitNotVisibleElementAsync

Description: the method temporarily stops the test execution for the specified number of seconds and waits for the requested element to stop being displayed 

Syntax: 

WaitNotVisibleElementAsync(string by, string locator, int sec)

WaitNotVisibleElementAsync(Locator locator, int sec)

Return value: no return value


Example:

await tester.WaitNotVisibleElementAsync(Tester.BY_CSS, "div[id='result']", 2);

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


await tester.WaitNotVisibleElementAsync(tester.GetLocator("locatorName"), 2);

Created with the Personal Edition of HelpNDoc: Easy EPub and documentation editor