Exemple #1
0
        public static void TestUploadPicture()
        {
            IWebDriver wd = new ChromeDriver(Constants.WEBDRIVER_PATH);

            wd.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);
            wd.Manage().Window.Maximize();
            Debug.WriteLine("Drive Initialized!");
            Thread.Sleep(3000);

            HumanityHome.NavigateTo(wd);
            HumanityHome.ClickCookies(wd);
            HumanityHome.ClickLogIn(wd);

            TestLogin.FillForm(wd, "*****@*****.**", "Mikica345");
            HuamnityLogin.ClickButtonLogIn(wd);
            HumanityProfile.ClickProfileMenu(wd);
            HumanityProfile.ClickProfile(wd);
            HumanityEditStaff.ClickEditDetails(wd);

            HumanityEditStaff.ClickUploadPicture(wd);
            Thread.Sleep(5000);
            HumanityEditStaff.SendNickname(wd, "Maki");
            HumanityEditStaff.ClickSaveButton(wd);
        }