Пример #1
0
        /// <summary>
        /// Selects the first document in the document list.
        /// </summary>
        /// <param name="checkboxId">The checkbox identifier.</param>
        /// <param name="onchangeValue">The onchange value.</param>
        public void SelectFirstDocument(string checkboxId, string onchangeValue)
        {
            var firstDocumentWidget = _controlPanel.WaitForWidget(checkboxId, _mediumDelay);

            if (firstDocumentWidget != null)
            {
                _controlPanel.PerformAction(WidgetAction.Check, checkboxId);
            }

            Thread.Sleep(_pause);
        }
Пример #2
0
        /// <summary>
        /// Selects the first document in the document list.
        /// </summary>
        public void SelectFirstDocument()
        {
            string firstDocId = GetFirstDocumentId();

            _controlPanel.WaitForWidget(firstDocId);

            _controlPanel.PerformAction(WidgetAction.Check, firstDocId);
            Thread.Sleep(200);
            if (!_controlPanel.WaitForWidget(firstDocId).HasValue("SELECTED", StringMatch.Exact))
            {
                Thread.Sleep(1000);
                _controlPanel.PerformAction(WidgetAction.Check, firstDocId);
            }
        }