Ejemplo n.º 1
0
        public void SignUpSC(string emailAdr, string pwd)
        {
            firstNameTxt.SendKeys("Tester1");
            //.... and more

            SignUpBtn.Click();
        }
 public void ClickOnSignUpBtnInitial()
 {
     if (SignUpBtn.Displayed)
     {
         SignUpBtn.Click();
     }
     else
     {
         throw new Exception("Sign Up button is not found");
     }
 }
Ejemplo n.º 3
0
        public AuthWindow()
        {
            InitializeComponent();
            db = new ApplicationContext();

            DoubleAnimation btnAnimation  = new DoubleAnimation();
            DoubleAnimation btnAnimation1 = new DoubleAnimation();

            btnAnimation.From     = 0;
            btnAnimation.To       = 268;
            btnAnimation.Duration = TimeSpan.FromSeconds(3);
            SignInBtn.BeginAnimation(Button.WidthProperty, btnAnimation);

            btnAnimation1.From     = 0;
            btnAnimation1.To       = 80;
            btnAnimation1.Duration = TimeSpan.FromSeconds(3);
            SignUpBtn.BeginAnimation(Button.WidthProperty, btnAnimation1);
        }
Ejemplo n.º 4
0
        public void InvalidEmail()
        {
            EnterCredentials();

            const string invalidEmail = "Invalid";

            Window.Get <TextBox>("Email").Enter(invalidEmail);

            SignUpBtn.Click();

            var errorBox = Window.MessageBox("");

            errorBox.Should().NotBe(null);

            errorBox.Get <Label>().Text
            .Should().Be(string.Format(Resources.InvalidEmailError, invalidEmail));

            CloseMessageBox();
        }
Ejemplo n.º 5
0
 private static void SignUp()
 {
     EnterCredentials();
     SignUpBtn.Click();
 }
Ejemplo n.º 6
0
        /* ---------- */

        // User click Register in login form
        public void OnClickRegister(object sender, EventArgs e)
        {
            SignUpBtn.PerformClick();
        }