public TC Find <TC>(string componentName) where TC : AutomationElementWrapper { return(Find <TC>(FindBy.UiAutomationId(componentName))); }
public bool Contains(string name) { return(Contains(FindBy.UiAutomationId(name))); }
public Window FindWindow(string windowName, TimeSpan timeout, FailureToFindHandler handler) { return(FindWindow(FindBy.UiAutomationId(windowName), timeout, handler)); }
public Window FindWindow(string windowName) { return(FindWindow(FindBy.UiAutomationId(windowName))); }
public void IsConfirmed() { MessageWindow.Find <Button>(FindBy.UiAutomationId("confirmButton")).Click(); _messageWindow = null; }
public void IsDeclined() { MessageWindow.Find <Button>(FindBy.UiAutomationId("cancelButton")).Click(); _messageWindow = null; }
public void ShouldAskUs(string message) { var messageLabel = MessageWindow.Find <Label>(FindBy.UiAutomationId("messageOutput")); Assert.AreEqual(message, messageLabel.Text); }