public AuthentificationPOMSteps(IWebDriver _driver)
        {
            driver = _driver;

            Authentification = new AuthentificationPage(driver);
            comM             = new CommonMethod(driver);
        }
 public SelectorViewModel()
 {
     _authentificationPage = new AuthentificationPage();
     ActivePage = _authentificationPage;
     //_mainPage = new MainPage();
     //ActivePage = _mainPage;
     Messenger.Default.Register<ChangePageMessage>(this, ChangePage);
 }
        public void Soit_que_je_suis_un_client_authentifié()
        {
            AuthentificationPage p = new AuthentificationPage(_webDriver).Load();
            p.Usager = "admin";
            p.MotDePasse = "qwerty123";

            p.Soumettre();
        }
        public RechercheSteps(IWebDriver _driver)
        {
            driver = _driver;

            Authentification = new AuthentificationPage(driver);
            comM             = new CommonMethod(driver);
            homePage         = new HomePage(driver);
            rechercheAvancée = new RechercheAvancéePage(driver);
        }
Exemple #5
0
        public void TestRetrievePassword()
        {
            AuthentificationPage authntificationPage = headr.ClickOnSignIn();
            bool isEmailOk = authntificationPage
                             .ClickOnForgotPassword()
                             .PutEmail("*****@*****.**")
                             .ClickRetrievePassword()
                             .IsEmailOk();

            Assert.That(isEmailOk, "Email not Ok");
        }
        /// <summary>
        /// Method which will change the active page (binded into MainWindow) by the page asked by user.
        /// The information about the page is transmitted into message (MVVMLight.Messenger class).
        /// </summary>
        /// <param name="message"></param>
        private void ChangePage(ChangePageMessage message)
        {
            switch (message.PageName)
            {
                case "authentification":
                    if (_authentificationPage == null)
                        _authentificationPage = new AuthentificationPage();
                    ActivePage = _authentificationPage;
                    break;

                case "main":
                    if (_mainPage == null)
                        _mainPage = new MainPage();
                    ActivePage = _mainPage;
                    break;

                case "students":
                    if (_studentsPage == null)
                        _studentsPage = new StudentsPage();
                    ActivePage = _studentsPage;
                    break;

                case "professors":
                    if (_professorsPage == null)
                        _professorsPage = new ProfessorsPage();
                    ActivePage = _professorsPage;
                    break;

                case "cours":
                    if (_coursPage == null)
                        _coursPage = new CoursPage();
                    ActivePage = _coursPage;
                    break;

                case "sections":
                    if (_sectionsPage == null)
                        _sectionsPage = new SectionsPage();
                    ActivePage = _sectionsPage;
                    break;

                case "faculties":
                    if (_facultiesPage == null)
                        _facultiesPage = new FacultiesPage();
                    ActivePage = _facultiesPage;
                    break;

                default:
                    break;
            }
        }
Exemple #7
0
        public App()
        {
            InitializeComponent();

            MainPage = new AuthentificationPage();
        }
Exemple #8
0
 public MainWindow()
 {
     InitializeComponent();
     Content = new AuthentificationPage(this);
 }
Exemple #9
0
 public ConnecterAAlissiaSteps(IWebDriver _driver)
 {
     driver           = _driver;
     authentification = new AuthentificationPage(driver);
     homeP            = new HomePage(driver);
 }