WaitVisibleElementAsync

Parent Previous Next

WaitVisibleElementAsync

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

Syntax: WaitVisibleElementAsync(string by, string locator, int sec)

Return value: no return value


Example:

FRAMEElement frame = await tester.GetFrameAsync(0);

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


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

Created with the Personal Edition of HelpNDoc: Easily create EPub books