public void SelectedRow()
        {
            listView.Select(0);
            ListViewRow listViewRow = listView.SelectedRows[0];

            Assert.AreEqual("Search", listViewRow.Cells["Key"].Text);
        }
        public void CellText()
        {
            ListViewRow first = listView.Rows[0];

            Assert.AreEqual("Search", first.Cells[0].Text);
            Assert.AreEqual("Google", first.Cells[1].Text);
            ListViewRow second = listView.Rows[1];

            Assert.AreEqual("Mail", second.Cells[0].Text);
            Assert.AreEqual("GMail", second.Cells[1].Text);
        }
        public void SelectRow()
        {
            listView.Select(0);
            ListViewRow firstRow = listView.Rows[0];

            Assert.AreEqual(true, firstRow.IsSelected);
            Assert.AreEqual("listView item selected - " + 0, window.Get <Label>("result").Text);
            listView.Select(1);
            ListViewRow secondRow = listView.Rows[1];

            Assert.AreEqual(true, secondRow.IsSelected);
        }
示例#4
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);
        }
        public void CellCount()
        {
            ListViewRow row = listView.Rows[0];

            Assert.AreEqual(2, row.Cells.Count);
        }