示例#1
0
        public void Login5()
        {
            //PROBA LOGOWANIA BEZ HASLA
            MainPageAction  mainPageAction  = new MainPageAction(driver);
            LoginPageAction loginPageAction = new LoginPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZalogujBT();
            loginPageAction.emailETSet(GlobalVariables.emailPositive);
            loginPageAction.loginBTClick();
            loginPageAction.passwordErrValidate();
        }
示例#2
0
        public void Login2()
        {
            //POZYTYWNE LOGOWANIE
            MainPageAction  mainPageAction  = new MainPageAction(driver);
            LoginPageAction loginPageAction = new LoginPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZalogujBT();
            loginPageAction.positiveLogin();
            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickWylogujBT();
        }
示例#3
0
        public void Login3()
        {
            //NEGATYWNE LOGOWANIE
            MainPageAction  mainPageAction  = new MainPageAction(driver);
            LoginPageAction loginPageAction = new LoginPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZalogujBT();
            loginPageAction.emailETSet(GlobalVariables.emailNegative);
            loginPageAction.passwordETSet(GlobalVariables.passwordNegative);
            loginPageAction.loginBTClick();
            loginPageAction.negativeLoginTXValidate();
        }
示例#4
0
        public void Login1()
        {
            //WALIDACJA FORMATKI
            MainPageAction  mainPageAction  = new MainPageAction(driver);
            LoginPageAction loginPageAction = new LoginPageAction(driver);


            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZalogujBT();
            loginPageAction.zalogujTitleTXValidate();
            loginPageAction.emailTXValidate();
            loginPageAction.emailETSet("login");
            loginPageAction.passwordTXValidate();
            loginPageAction.passwordETSet("password");
            loginPageAction.saveTXValidate();
            loginPageAction.saveCBClick();
            loginPageAction.loginBTClick();
        }
        public void Register2()
        {
            //REJESTRACJA POPRAWNE DANE + LOGOWANIE NA NOWE KONTO - Łukaś
            MainPageAction     mainPageAction     = new MainPageAction(driver);
            RegisterPageAction registerPageAction = new RegisterPageAction(driver);
            LoginPageAction    loginPageAction    = new LoginPageAction(driver);

            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZarejestrujBT();
            registerPageAction.registerNameETSet(GlobalVariables.registerNameCorrect);
            registerPageAction.registerSurnameETSet(GlobalVariables.registerSurnameCorrect);
            registerPageAction.registerEmailETSet(GlobalVariables.registerEmailCorrect);
            registerPageAction.registerPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerRepeatPasswordETSet(GlobalVariables.registerPasswordCorrect);
            registerPageAction.registerBTClick();
            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickZalogujBT();
            loginPageAction.emailETSet(GlobalVariables.registerEmailCorrect);
            loginPageAction.passwordETSet(GlobalVariables.registerPasswordCorrect);
            loginPageAction.loginBTClick();
            Thread.Sleep(2000);
            mainPageAction.clickUzytkownikBT();
            mainPageAction.clickWylogujBT();
        }