Example #1
0
        public static void SelectColor(string selectColor)
        {
            StepFourPage stepFourPage = new StepFourPage();

            switch (selectColor)
            {
            case "A":
                stepFourPage.BtnColorA.Click();
                break;

            case "B":
                stepFourPage.BtnColorB.Click();
                break;

            case "C":
                stepFourPage.BtnColorC.Click();
                break;

            case "D":
                stepFourPage.BtnColorD.Click();
                break;

            case "E":
                stepFourPage.BtnColorE.Click();
                break;

            case "F":
                stepFourPage.BtnColorF.Click();
                break;
            }
        }
Example #2
0
        public static string EnterComment(string values)
        {
            StepFourPage stepFourPage = new StepFourPage();

            string date    = DateTime.Now.ToString("dd/MM/yyyy H:mm:ss");
            string comment = "Prueba automatizada - " + date + ". Valores: " + values;

            stepFourPage.FieldComments.SendKeys(comment);
            return(comment);
        }
Example #3
0
        public static string NewRequestWithoutDesign(string selectArm, string selectAmp)
        {
            StepTwoPage  stepTwoPage  = new StepTwoPage();
            StepFourPage stepFourPage = new StepFourPage();
            string       values       = selectArm + ", " + selectAmp + ".";

            SelectArm(selectArm);
            SelectAmp(selectAmp);
            stepTwoPage.BtnNext.Click();
            Driver.WaitForElementUpTo(Data.ElementsWaitingTimeout);
            UploadImage();
            Comments = EnterComment(values);
            stepFourPage.BtnSendRequest.Click();
            Driver.WaitForElementUpTo(Data.ElementsWaitingTimeout);
            return(Comments);
        }