Exemplo n.º 1
0
        public BotSelenium(IWebDriver driver, String url, List <string> listQuartier, Bloc_Fenetre fenetre, String mail, String mdp)
        {
            this.driver = driver;

            listUserDepartment   = listQuartier;
            this.listInscription = new List <Inscription>();
            this.fenetre         = fenetre;
            gestionInterval      = new Gestion_Interval_User();
            this.url             = url;
            Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
            numeroSemaine = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(
                fenetre.list_bloc_jour[0].date_jour,
                DateTimeFormatInfo.CurrentInfo.CalendarWeekRule,
                DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek);

            listInterval = gestionInterval.Set_List_Interval_User(fenetre, listInscription);

            this.mail = mail;
            this.mdp  = mdp;

            Login();
            MoveToPlanning();
            PlanningPage();
        }