Esempio n. 1
0
        public void FindModalWindowAppearingOnDoubleClick()
        {
            ListViewRows rows = listView.Rows;

            rows[0].DoubleClick();
            CloseModal(window);
        }
Esempio n. 2
0
        public void SelectedRows()
        {
            listView.Rows[5].Select();
            listView.Rows[0].Select();
            ListViewRows rows = listView.SelectedRows;

            Assert.AreEqual(1, rows.Count);
        }
Esempio n. 3
0
        public void Select()
        {
            ListView listView = window.Get <ListView>("listViewForScenarioTest");

            listView.Select("", "foo");
            ListViewRows rows = listView.SelectedRows;

            Assert.AreEqual(1, rows.Count);
            Assert.AreEqual("foo", rows[0].Cells[0].Text);
        }
Esempio n. 4
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);
        }
Esempio n. 5
0
        void SuggestionList.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);
        }