WaitVisibleElementAsync

Parent Previous Next

WaitVisibleElementAsync

Описание: метод выполняет временную остановку выполнения теста на указанное количество секунд и ждет когда  запрашиваемый элемент отобразится

Синтаксис: WaitVisibleElementAsync(string by, string locator, int sec)

Возвращаемое значение: отсутствует


Пример:

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: News and information about help authoring tools and software