public WaitElementPresent ( int secondsToWait = 1 ) : bool | ||
secondsToWait | int | Сколько секунд ждать |
Результат | bool |
public bool WaitElementPresent(int secondsToWait = 1)
{
int timer = 0;
bool appeared = true;
while (BitrixFramework.FindWebElement(this) == null)
{
if (secondsToWait != timer)
{
timer++;
BitrixFramework.Wait(1);
}
else
{
return appeared = false;
}
}
return appeared;
}