Ejemplo n.º 1
0
        protected void SetForecastTabData(ForecastTabData forecastTabData)
        {
            if (forecastTabData == null)
            {
                return;
            }

            ClickTab("Forecast");

            ScrollAndClickElement(_rdoValue);

            ClearInputAndTypeValueIfRequired(_txtForecastMetric("Est.Clicks."), forecastTabData.EstClicks);
            ClearInputAndTypeValueIfRequired(_txtForecastMetric("Est.Acqs."), forecastTabData.EstAcqs);
            ClearInputAndTypeValueIfRequired(_txtForecastMetric("Est.Views."), forecastTabData.EstViews);

            Wait.Until(driver => _txtForecastMetric("Est.VTR%").GetAttribute("value").Equals(forecastTabData.EstVtrPercentage));
        }
Ejemplo n.º 2
0
        public void VerifyForecastValues(ForecastTabData forecastTabData)
        {
            if (forecastTabData == null)
            {
                return;
            }
            Assert.AreEqual(_txtForecastMetric("Est.Imps.").GetAttribute("value"), forecastTabData.EstImps);
            Assert.AreEqual(_txtForecastMetric("Est.Clicks.").GetAttribute("value"), forecastTabData.EstClicks);
            Assert.AreEqual(_txtForecastMetric("Est.Acqs.").GetAttribute("value"), forecastTabData.EstAcqs);
            Assert.AreEqual(_txtForecastMetric("Est.Views.").GetAttribute("value"), forecastTabData.EstViews);

            Assert.AreEqual(_txtForecastMetric("Est.CTR%").GetAttribute("value"), forecastTabData.EstCtrPercentage);
            Assert.AreEqual(_txtForecastMetric("Est.CVR%").GetAttribute("value"), forecastTabData.EstCvrPercentage);
            Assert.AreEqual(_txtForecastMetric("Est.VTR%").GetAttribute("value"), forecastTabData.EstVtrPercentage);

            Assert.AreEqual(_txtForecastMetric("Est. CPM").GetAttribute("value"), forecastTabData.EstCpm);
            Assert.AreEqual(_txtForecastMetric("Est. CPC").GetAttribute("value"), forecastTabData.EstCpc);
            Assert.AreEqual(_txtForecastMetric("Est. CPA").GetAttribute("value"), forecastTabData.EstCpa);
            Assert.AreEqual(_txtForecastMetric("Est. CPV").GetAttribute("value"), forecastTabData.EstCpv);
        }