示例#1
0
        private void ButtonClear_OnClick(object sender, RoutedEventArgs e)
        {
            InputLogin.Clear();
            InputPassword1.Clear();
            InputPassword2.Clear();
            InputEmail.Clear();

            LabelShow.Text = string.Empty;
        }
示例#2
0
        /// <summary>
        /// Performs the login using the <paramref name="username"/> & <paramref name="password"/>
        /// </summary>
        /// <param name="username">The username.</param>
        /// <param name="password">The password.</param>
        public Homepage Login(string username, string password)
        {
            WaitForLoad();

            InputEmail.Clear();
            InputEmail.SendKeys(username);

            InputPassword.Clear();
            InputPassword.SendKeys(password);

            SubmitButton.Click();

            return(new Homepage(Helper.Homepage.AbsoluteUri, Helper.HomepageTitle));
        }
示例#3
0
        public void Register(string password, string promtionCode)
        {
            TestConfigManager.Instance.assertBefore(By.XPath("/html/body/app/div/section/topbar/header/nav/ul/li[5]"));
            PageObjectManager.Instance.external_InitClasses.tempMail.GetMail();
            string email = PageObjectManager.Instance.external_InitClasses.tempMail.email;

            this.ClickOnRegisterButtonTopBar();
            this.RegisterInputEmail("*****@*****.**");
            this.RegisterInputPassword(password);
            this.RegisterConfirimPassword(password);
            this.RegisterPromotionCode(promtionCode);
            if (WebDriverExtension.SeleniumSetMethods.IsFound(By.CssSelector(".error-email .error-box")))
            {
                TestConfigManager.Instance.driver.SwitchTo().Window(BrowsersFactory.Instance.newTabInstance);
                PageObjectManager.Instance.external_InitClasses.tempMail.GetMail();
                InputEmail.Clear();
                this.RegisterInputEmail(email);
            }
            this.RegisterIAccept();
            this.RegisterClickSignup();
            TestConfigManager.Instance.assertAfter(By.CssSelector(".modal-container .success-popup"));
            this.clickOKSuccess();
            System.Threading.Thread.Sleep(2000);
        }