Exemple #1
0
        public void TestCreateOrderWithTwoPhones()
        {
            var userMenuPop = new UserMenuPopup(_driver);

            userMenuPop.CloseBanner();
            userMenuPop.OpenUserMenu();
            userMenuPop.OpenSignUpPage();

            var signUpPage = new SignUpPage(_driver);

            signUpPage.FillUserData(_user);
            signUpPage.ClickSignUpButton();

            var searchPage = new SearchPage(_driver);

            searchPage.SendSearchRequest(SearchRequest);
            searchPage.ClickOnFirstFoundProductColor();

            var productPage    = new ProductPage(_driver);
            var boughtProducts = productPage.BuyTwoProductsDifferentColor();

            boughtProducts.Reverse();

            var cartPopup = new CartPopup(_driver);

            cartPopup.CheckProductsInCartAreExpected(boughtProducts);
            cartPopup.CheckTotalPriceIsExpected(boughtProducts);
            cartPopup.ClickCreateOrder();

            var orderCreationPage = new OrderCreationPage(_driver);

            orderCreationPage.EnterOrderDetails(_user);
            orderCreationPage.SelectDeliveryMethod("курьер Новая Почта");
            orderCreationPage.EnterDeliveryInfo(_user);
        }
 public void WhenIProvideMyAndAndAndAndAndAndAndAndAndAnd(string firstName, string lastName, string mobile, string email, string restaurant, string street, string city, string postCode, string cuisine, string status, string drivers)
 {
     _restaurantSignUpWizardPage = new RestaurantSignUpWizardPage(_webDriver);
     _isWizard = _restaurantSignUpWizardPage.IsWizardPresent();
     if (_isWizard)
     {
         _restaurantSignUpWizardPage.FillWizardForm(restaurant, postCode, mobile, email);
         _restaurantSignUpWizardPage.SubmitWizardForm();
         _restaurantSignUpPage = new RestaurantSignUpPage(_webDriver);
         _restaurantSignUpPage.FillForm(firstName, lastName, street, city, postCode);
         _restaurantSignUpPage.SelectCuisine(cuisine);
         _restaurantSignUpPage.SelectFulfillment(status);
         _restaurantSignUpPage.SubmitForm();
     }
     else
     {
         _restaurantSignUpWizardPage.RegisterInterest();
         _signUpPage = new SignUpPage(_webDriver);
         _signUpPage.FillForm(firstName, lastName, mobile, email, restaurant, street, city, postCode);
         _signUpPage.SelectCuisine(cuisine);
         _signUpPage.SelectFulfillment(status);
         _signUpPage.SelectDrivers(drivers);
         _signUpPage.SubmitForm();
     }
 }
 /// <summary>
 /// Initializes a new instance for the <see cref="SignUpPageViewModel" /> class.
 /// </summary>
 public SignUpPageViewModel(SignUpPage page, IAuthorizationService authorizationService)
 {
     this.page = page;
     this.authorizationService = authorizationService;
     this.LoginCommand         = new Command(this.LoginClicked);
     this.SignUpCommand        = new Command(this.SignUpClicked);
 }
Exemple #4
0
 public App()
 {
     InitializeComponent();
     // Initialize all polygons from Coordinates.cs
     geometryInteractor.InitializePolygonsArray();
     MainPage = new SignUpPage();
 }
Exemple #5
0
        public App()
        {
            InitializeComponent();
            MainPage = new SignUpPage();

            //MainPage = new MainPage();
        }
Exemple #6
0
        public void verifyTabMenusNavigation()
        {
            HomePage.goToHome();
            Assert.IsTrue(HomePage.isAtPropertyOrHomePage(), "The operation failed to navigate to the home page");

            HomePage.GoToTab("News");
            Assert.IsTrue(NewsPage.isAtNewsPage(), "The operation failed to navigate to the news page");

            HomePage.GoToTab("Property");
            Assert.IsTrue(HomePage.isAtPropertyOrHomePage(), "The operation failed to navigate to the property page");

            HomePage.GoToTab("Business for Sale");
            Assert.IsTrue(BusinessForSalePage.isAtBusinessForSalePage(), "The operation failed to navigate to the business for sale page");

            HomePage.GoToTab("Agents");
            Assert.IsTrue(AgentsPage.isAtAgentsPage(), "The operation failed to navigate to the agents page");

            HomePage.GoToTab("Franchise");
            Assert.IsTrue(FranchisePage.isAtFranchiseSalePage(), "The operation failed to navigate to the franchise page");

            HomePage.GoToTab("Sign Up");
            Assert.IsTrue(SignUpPage.isAtSignUpPage(), "The operation failed to navigate to the signup page");
            Main.navigateBack();

            HomePage.GoToTab("Login");
            Assert.IsTrue(LoginPage.isAtLoginPage(), "The operation failed to navigate to the login page");
            Main.navigateBack();

            HomePage.GoToTab("Commercial Real Estate");
            Assert.IsTrue(HomePage.isAtPropertyOrHomePage(), "The operation failed to navigate to the home page");
        }
Exemple #7
0
    void OpenMainPage()
    {
        HomePage.Hide(false);
        HomePage.gameObject.SetActive(false);
        SignUpPage.Hide(false);
        SignInPage.Hide(false);


        //if (user.Email!="")
        //	UserEmail = user.Email;
        //else
        if (user.UserId != "")
        {
            UserEmail = user.UserId;
        }

        //WriteEditorData ();

        //DebugLog (UserEmail+"ID");
        //DisplayInfo ();
        if (!isDataEntry)
        {
            MainPage.gameObject.SetActive(true);
            MainPage.Show(false);
            GetComponent <DataBaseManager> ().ReadDataBase();
        }
        else
        {
            DataEntryPage.gameObject.SetActive(true);
            DataEntryPage.Show(false);
            GetComponent <DatabaseEntry> ().GetDatabaseEntry();
        }
        //_DisplayInfo.OnEnable ();
    }
Exemple #8
0
        //i.	Ca si admin, dati click pe buton de administrare si accesati meniul Utilizatori, alegeti un utilizator si editati.
        public void VerifyEditUserAsAdmin()
        {
            HomePage        homePage        = new HomePage(Driver);
            LoginPage       loginPage       = new LoginPage(Driver);
            SignUpPage      signUpPage      = new SignUpPage(Driver);
            UtilizatoriPage utilizatoriPage = new UtilizatoriPage(Driver);

            //Arrange
            NavigateToUrl(SiteUrl);
            homePage.GoToAuthentication();
            loginPage.AuthenticateUser(AdminUser, AdminPassword);
            homePage.GoToMenu("Administrare");
            homePage.GoToMenu("Utilizatori");

            //Act
            //utilizatoriPage.EditUser();  //edit first user
            utilizatoriPage.ClickEditUser(AdinaUser);  //edit specific user
            signUpPage.FillInEmailField("*****@*****.**");
            utilizatoriPage.ClickActualizeazaUtilizator();

            //Assert
            loginPage.VerifyElementContainsText(loginPage.AlertMessage, "The user has been successfully updated.");

            //Change email back to initial value
            signUpPage.FillInEmailField(AdinaUser);
            utilizatoriPage.ClickActualizeazaUtilizator();
        }
Exemple #9
0
        public void SignUp() //signup test.
        {
            homePage.OpenHomePage();
            SignUpPage signUpPage = homePage.OpenSignUpPage();

            signUpPage.SignUpUsinngMSAccount();
        }
Exemple #10
0
        private async void OpenPage()
        {
            KooshDarooDatabase odb = new KooshDarooDatabase();
            var oLoginItemS        = odb.GetPharmacysAsync();

            if (oLoginItemS.Result.Count > 0)
            {
                PharmacyService Pharmacyervices = new PharmacyService();
                var             pharmacyS       = Task.Run(() => Pharmacyervices.GetPharmacyByPhoneNoAsync(oLoginItemS.Result[0].PhoneNo));
                if (pharmacyS.Result.Count == 0)
                {
                    oLoginItemS.Result.ForEach(f => odb.DeletePharmacyAsync(f));
                    MainPage = new NavigationPage(new SignUpPage());
                    //MainPage = new SignUpPage();
                }
                else
                {
                    myId      = pharmacyS.Result[0].id;
                    myPhoneNo = pharmacyS.Result[0].PhoneNo;

                    MainPage = new NavigationPage(new MainPageTabbed());
                    //MainPage = new MainPageTabbed();
                }
            }
            else
            {
                MainPage = new SignUpPage();
            }
        }
Exemple #11
0
        public void GivenTheNewUserRegistersSuccessfuly()
        {
            SignUpPage signup = new SignUpPage();

            signup.ClickJoin(driver);
            signup.ClickRegisterBtn(driver);
        }
Exemple #12
0
        public async Task SignUp_SessionCrated()
        {
            // Arrange
            await Task.Delay(TimeSpan.FromSeconds(5));

            using IdentityApp app = _testContext.CreateApp <IdentityApp>();
            await app.TestContext.StartMagnetAsync();

            string mobileNr = "+41798074288";
            string email    = $"{Guid.NewGuid().ToString("N").Substring(0, 6)}@magic-media.io";

            // Act
            SignUpPage page = app.Open <SignUpPage>($"{app.TestContext.HostUrl}SignUp");

            page.SignUp(email, mobileNr);

            ValidateMobilePage validatePage = app.WaitForPage <ValidateMobilePage>();

            SmsMessage sms = await app.TestContext.MagnetSession.WaitForSms(mobileNr);

            var code = ParseSecurityCode(sms.Body);

            validatePage.EnterCode(code);

            SignUpCompletedPage completed = app.WaitForPage <SignUpCompletedPage>();

            // Assert
            completed.SuccessAlert.Text.Should().Be("Registration completed");

            SignUpSession session = await GetSessionAsync(email);

            session.State.Should().Be("Completed");
        }
Exemple #13
0
        public void WhenIFillInTheSignUpForm(Table table)
        {
            var        myUser     = table.CreateInstance <UserInfoDto>();
            SignUpPage signUpPage = new SignUpPage(Driver);

            signUpPage.CreateAccountDto(myUser);
        }
        private async void OpenPage()
        {
            KooshDarooDatabase odb = new KooshDarooDatabase();
            var oLoginItemS        = odb.GetItemsAsync();

            if (oLoginItemS.Result.Count > 0)
            {
                MemberService memberservices = new MemberService();
                //var member = await memberservices.GetMemberByPhoneNoAsync(oLoginItemS.Result[0].PhoneNo);
                var member = Task.Run(() => memberservices.GetMemberByPhoneNoAsync(oLoginItemS.Result[0].PhoneNo));
                if (member.Result.Count == 0)
                //if (member.Count == 0)
                {
                    oLoginItemS.Result.ForEach(f => odb.DeleteItemAsync(f));
                    MainPage = new SignUpPage();
                }
                else
                {
                    MainPage = new MainPageTabbed();
                }
            }
            else
            {
                MainPage = new SignUpPage();
            }
            //MainPage = new NavigationPage(new SignUpPage());
        }
Exemple #15
0
        private async void SignUp()
        {
            SignUpPage signUpPage = new SignUpPage();

            if (string.IsNullOrEmpty(Email) || string.IsNullOrEmpty(Password))
            {
                await App.Current.MainPage.DisplayAlert("Hata", "Lütfen Email ve Parola Giriniz!", "OK");
            }
            var emailPattern = "^([\\w\\.\\-]+)@([\\w\\-]+)((\\.(\\w){2,3})+)$";

            if (!String.IsNullOrWhiteSpace(email) && !(Regex.IsMatch(Email, emailPattern)))
            {
                await App.Current.MainPage.DisplayAlert("Hata", "Geçersiz Email", "OK");
            }
            else
            {
                var user = await FirebaseHelper.AddUser(Email, Password);

                if (user)
                {
                    await App.Current.MainPage.DisplayAlert("Başarılı", "Kayıt Başarılı", "Ok");

                    await App.Current.MainPage.Navigation.PushAsync(new LoginPage());
                }
                else
                {
                    await App.Current.MainPage.DisplayAlert("Hata", "Kayıt Başarısız!", "OK");
                }
            }
        }
Exemple #16
0
        public void SignUpWithNewDefaultUser()
        {
            var signUpPage = new SignUpPage(_driver);

            signUpPage.Navigate();
            signUpPage.SignUpDefault("*****@*****.**", "somePassword");
        }
        public void WhenSubmitsTheSignUpForm()
        {
            Utilities  ut  = new Utilities(Driver);
            SignUpPage sup = new SignUpPage(Driver);

            ut.ClickOnElement(sup.registerBtn);
        }
 public LoginSteps(IWebDriver driver, HomePage hPg, ConduitWebPage cdpg, SignUpPage sUpg, SignInPage sIpg)
 {
     _driver         = driver;
     _homePage       = hPg;
     _conduitWebpage = cdpg;
     _signUpPage     = sUpg;
     _signInPage     = sIpg;
 }
        private async void SignUpPageExecute(object param)
        {
            SignUpPage      signUpView      = new SignUpPage();
            SignUpViewModel signUpViewModel = new SignUpViewModel();

            signUpView.BindingContext = signUpViewModel;
            await App.Current.MainPage.Navigation.PushAsync(signUpView);
        }
Exemple #20
0
        public void Initialize(SignUpPage page)
        {
            this.signUpPage = page;

            Avatar      = Name = Email = PhoneNumber = ZipCode = Password = ConfirmPassword = string.Empty;
            GenderIndex = -1;
            Birthday    = DateTime.Now.AddYears(-18);
        }
Exemple #21
0
        public void SignUpButton_NavigatesToSignUpPage()
        {
            LandingPage landingPage = new LandingPage(driver);

            SignUpPage signUpPage = landingPage.ClickSignUp();

            Assert.True(signUpPage.IsRegisterFormDisplayed());
        }
Exemple #22
0
        public void GivenUserIsOnMainPage()
        {
            IWebDriver driver = new OpenQA.Selenium.Chrome.ChromeDriver(@"D:\1\");

            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl("https://loving-hermann-e2094b.netlify.app/index.html");
            signUpPage = new SignUpPage(driver);
        }
 public void SetUp()
 {
     driver = new ChromeDriver();
     driver.Manage().Window.Maximize();
     driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
     driver.Navigate().GoToUrl(EnvironmentVariables.QaSignUpEmailUrl);
     signUpPage    = new SignUpPage(driver);
     dashboardPage = signUpPage.SuccessfullSignUpUnVerified(RandomString(signUpName), RandomString(signUpSurname), RandomString(signUpEmail) + "@test.com");
 }
 public void SetUp()
 {
     driver     = new ChromeDriver();
     signUpPage = new SignUpPage(driver);
     driver.Manage().Window.Maximize();
     driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(50);
     driver.Navigate().GoToUrl("https://demoblaze.com/");
     signUpPage.menuItemControl.NavigateToSignUpPage();
 }
Exemple #25
0
 /// <summary>
 /// Initializing properties
 /// </summary>
 /// <param name="signUpPage">Page for signup</param>
 public SignUpViewModel(SignUpPage signUpPage)
 {
     //LoginCommand = new LoginCommand(this);
     mPage           = signUpPage;
     SignUpPage      = (SignUpPage)mPage;
     ActualPage      = PageList.SignUp;
     RegisterCommand = new RegisterCommand(this);
     BackCommand     = new NavigateCommand(this);
 }
 public void OpenBrowserWindowAndNavigateToSignUpPage()
 {
     Initialize();
     _signInPage = new SignInPage(Driver);
     _signUpPage = new SignUpPage(Driver);
     _generator  = new DataGenerator();
     _user       = SignUpFactory.CreateUserData();
     _signInPage.Open();
     _signInPage.SubmitEmailAndProceedToSingUpPage();
 }
Exemple #27
0
        public void SignUpNewUser(string username, string password, string expectedWebPage)
        {
            foreach (var driver in Driver.Current)
            {
                SignUpPage signUpPage = new SignUpPage(driver);

                signUpPage.Register(username, password);

                Assert.AreEqual(expectedWebPage, driver.Url);
            }
        }
Exemple #28
0
        public static void FillSignUpForm(string password)
        {
            SignUpPage signUpPage = new SignUpPage();
            string     email      = GenerateNewEmail();

            signUpPage.TxtEmail.SendKeys(email);
            signUpPage.TxtPassword.SendKeys(password);
            signUpPage.TxtConfirmPassword.SendKeys(password);
            signUpPage.BtnSubmit.Click();
            Driver.WaitForElementUpTo(Data.ElementsWaitingTimeout);
        }
        public void GivenISignUp()
        {
            Driver.Navigate().GoToUrl("http://demosite.casqad.org/");
            HomePage homePage = new HomePage(Driver);

            homePage.GoToSignUp();
            Thread.Sleep(1000);
            SignUpPage signUpPage = new SignUpPage(Driver);

            signUpPage.PopulateSignUpPage();
        }
Exemple #30
0
        public void WhenIEditTheUser(string userEmail)
        {
            SignUpPage      signUpPage      = new SignUpPage(Driver);
            UtilizatoriPage utilizatoriPage = new UtilizatoriPage(Driver);

            utilizatoriPage.ClickEditUser(userEmail);  //edit specific user
            signUpPage.FillInEmailField("*****@*****.**");
            utilizatoriPage.ClickActualizeazaUtilizator();
            //Change email back to initial value
            signUpPage.FillInEmailField(userEmail);
            utilizatoriPage.ClickActualizeazaUtilizator();
        }