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;
}