Best.Practices.Test.CustomScrollDownTo C# (CSharp) Метод

CustomScrollDownTo() приватный Метод

private CustomScrollDownTo ( string marked, int maxTries ) : void
marked string
maxTries int
Результат void
        private void CustomScrollDownTo(string marked, int maxTries)
        {
            for (int i = 0; i < maxTries; i++)
            {
                // TODO: Scroll down until the "marked" element is visible or maxTries have been met
            }

            // TimeoutException is thrown if the element isn't found before maxTries is reached
            throw new TimeoutException("Unable to find element marked: '" + marked + "'");
        }