コード例 #1
0
        /// <summary>
        /// Try to un select all the rows. This would work when full row select in list view is false and there are atleast two columns
        /// </summary>
        public virtual void TryUnSelectAll()
        {
            ListViewRows rows = Rows;

            if (rows.Count == 0 || Header.Columns.Count < 2)
            {
                return;
            }

            rows[0].Cells[Header.Columns[1].Text].Click();
            actionListener.ActionPerformed(Action.WindowMessage);
        }
コード例 #2
0
        public virtual void Select(string text)
        {
            ListViewRows rows = Rows;
            ListViewRow  row  = rows.Find(obj => obj.Cells[0].Text.Equals(text));

            if (row == null)
            {
                throw new UIActionException("Could not find suggestion " + text);
            }
            row.Select();
            SuggestionListView.WaitTillNotPresent();
            actionListener.ActionPerformed(Action.WindowMessage);
        }