Exemplo n.º 1
0
        public void EditFraudRiskLevelFields(FraudRiskLevelData data)
        {
            //Set Fraud Risk Level Name
            InputFRLName.Clear();
            InputFRLName.SendKeys(data.FRLName);

            //Enter Remarks
            InputRemarks.Clear();
            InputRemarks.SendKeys(data.Remarks);
        }
Exemplo n.º 2
0
        public void SetFraudRiskLevelFields(FraudRiskLevelData data)
        {
            //Set licensee
            IWebElement licenseeDropdown = null;

            try
            {
                var e = _driver.FindElement(LicenseeBy);
                if (e.Enabled)
                {
                    licenseeDropdown = e;
                }
            }
            catch (NoSuchElementException)
            {
            }

            if (licenseeDropdown != null)
            {
                new SelectElement(licenseeDropdown).SelectByText(data.Licensee);
            }

            //Set Brand
            new SelectElement(_driver.FindElementWait(BrandBy)).SelectByText(data.Brand);

            //Set Fraud Risk Level Code
            InputFRLCode.Clear();
            InputFRLCode.SendKeys(data.FRLCode);

            //Set Fraud Risk Level Name
            InputFRLName.Clear();
            InputFRLName.SendKeys(data.FRLName);

            //Enter Remarks
            InputRemarks.Clear();
            InputRemarks.SendKeys(data.Remarks);
        }