Skip to content

Instantly share code, notes, and snippets.

@bezysoftware
Last active September 9, 2018 09:56
Show Gist options
  • Select an option

  • Save bezysoftware/53b04664605052028e1020916b77d01a to your computer and use it in GitHub Desktop.

Select an option

Save bezysoftware/53b04664605052028e1020916b77d01a to your computer and use it in GitHub Desktop.
private async Task LoginAsync(string lng)
{
// skip onboarding
Keyboard.SendKeys("{Escape}");
// set locale
this.UIMap.UISettleUpWindow.LocaleTextBox.Text = lng;
// email login
var email = $"screenshots-{lng}@settleup.io";
Gesture.Tap(this.UIMap.UISettleUpWindow.EmailLoginButton);
this.UIMap.UISettleUpWindow.Dialog.EmailLoginTextBox.Text = email;
Gesture.Tap(this.UIMap.UISettleUpWindow.Popup.EmailLoginSubmit);
this.UIMap.UISettleUpWindow.EmailLoginPasswordBox.Text = "secret-password";
Gesture.Tap(this.UIMap.UISettleUpWindow.EmailLoginPasswordSubmit);
this.UIMap.UISettleUpWindow.RightPivot.TransactionsPivotItem.ExpensesList.ExpenseItem.WaitForControlExist(20000);
// wait till app loads
await Task.Delay(5000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment