Esempio n. 1
0
        public void WaitForElementVisible(string element, int time)
        {
            var    ticks     = new TimeSpan(DateTime.Now.Ticks);
            double totalTime = this.ClockTime(ticks);

            while (this.FindVisibleElement(element) == null && totalTime <= time)
            {
                totalTime = Convert.ToInt32(this.ClockTime(ticks));
                if (totalTime >= time)
                {
                    assertions.AssertFail("Failed to find element " + element + " after " + totalTime + " seconds");
                }
            }
        }