public Label NewLabel()
        {
            this.MainWindow.Focus();
            AutomationElement newLabel = this.MainWindow.FindFirstChild("NewLabel");

            return(newLabel.AsLabel());
        }
Beispiel #2
0
        private void CheckCellValue(AutomationElement cell, string cellValue)
        {
            var cellText = cell.AsLabel();

            Assert.That(cellText.Text, Is.EqualTo(cellValue));
        }