public Label NewLabel() { this.MainWindow.Focus(); AutomationElement newLabel = this.MainWindow.FindFirstChild("NewLabel"); return(newLabel.AsLabel()); }
private void CheckCellValue(AutomationElement cell, string cellValue) { var cellText = cell.AsLabel(); Assert.That(cellText.Text, Is.EqualTo(cellValue)); }