コード例 #1
0
        public void ClickItem(int row)
        {
            WpfRow  theRow       = GetRow(row);
            WpfEdit requiredEdit = (WpfEdit)theRow.GetChildren()[2].GetChildren()[0];

            Mouse.Click(requiredEdit, new Point(5, 5));
        }
コード例 #2
0
ファイル: WpfControlTests.cs プロジェクト: umakanthk/cuite
        public void WpfTable_GetRowAndCellByAutomationId_CanGetCellValue()
        {
            WpfRow  row0      = mainWindow.dg1.Get <WpfRow>("AutomationId=Row0");
            WpfCell row0cell0 = row0.Get <WpfCell>("AutomationId=cellRow0Col0");

            Assert.AreEqual("XML in Action", row0cell0.Value);
        }
コード例 #3
0
        public void EnterTextIntoRow(int rowIndex, string stringToEnter)
        {
            WpfRow wpfRow = GetRow(rowIndex);

            WpfEdit requiredEdit = (WpfEdit)wpfRow.GetChildren()[2].GetChildren()[0];

            requiredEdit.EnterText(stringToEnter);
        }
コード例 #4
0
        public void ClickMailFromFolderById(int index)
        {
            var mailsTable = MailsTableUIMap.UIMarktelerikdomaincomWindow.UIItemCustom.UILoadingProgressBar.UIGridViewTable;

            var virtualizingPanel = mailsTable.GetChildren().Single(item => (item as WpfControl).AutomationId == "PART_GridViewVirtualizingPanel");

            WpfRow row = new WpfRow(virtualizingPanel);
            row.SearchProperties[WpfControl.PropertyNames.AutomationId] = "Row_" + index;
            row.Find();

            Mouse.Click(row, new Point(10, 10));
        }
コード例 #5
0
        public bool MailExists(string subject)
        {
            var mailsTable = MailsTableUIMap.UIMarktelerikdomaincomWindow.UIItemCustom.UILoadingProgressBar.UIGridViewTable;

            var virtualizingPanel = mailsTable.GetChildren().Single(item => (item as WpfControl).AutomationId == "PART_GridViewVirtualizingPanel");

            WpfRow row = new WpfRow(virtualizingPanel);
            row.SearchProperties[WpfControl.PropertyNames.AutomationId] = "Row_0";
            row.Find();

            return subject == (row.Cells[1] as WpfCell).Value;
        }
コード例 #6
0
        public bool FlagExists(int index)
        {
            var mailsTable = MailsTableUIMap.UIMarktelerikdomaincomWindow.UIItemCustom.UILoadingProgressBar.UIGridViewTable;

            var virtualizingPanel = mailsTable.GetChildren().Single(item => (item as WpfControl).AutomationId == "PART_GridViewVirtualizingPanel");

            WpfRow row = new WpfRow(virtualizingPanel);
            row.SearchProperties[WpfControl.PropertyNames.AutomationId] = "Row_" + index;
            row.Find();

            WpfCell cell = new WpfCell(row);
            cell.SearchProperties[WpfControl.PropertyNames.AutomationId] = "Cell_" + index + "_3";
            cell.Find();

            WpfCustom cellElement = new WpfCustom(cell);
            cellElement.SearchProperties[WpfControl.PropertyNames.AutomationId] = "CellElement_" + index + "_3";
            return cellElement.TryFind();
        }