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)

Return value: no return value


Example:

FRAMEElement frame = await tester.GetFrameAsync(0);

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


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

Created with the Personal Edition of HelpNDoc: Full-featured EBook editor