Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (Area != null)
            {
                Area.Dispose();
                Area = null;
            }

            if (CountryFlag != null)
            {
                CountryFlag.Dispose();
                CountryFlag = null;
            }

            if (MainCurrency != null)
            {
                MainCurrency.Dispose();
                MainCurrency = null;
            }

            if (MainLanguage != null)
            {
                MainLanguage.Dispose();
                MainLanguage = null;
            }

            if (NameLbl != null)
            {
                NameLbl.Dispose();
                NameLbl = null;
            }

            if (Population != null)
            {
                Population.Dispose();
                Population = null;
            }

            if (Region != null)
            {
                Region.Dispose();
                Region = null;
            }

            if (Subregion != null)
            {
                Subregion.Dispose();
                Subregion = null;
            }
        }
Ejemplo n.º 2
0
        public void FlagCountry()
        {
            BasePage basePage = new BasePage(this.driver);

            basePage.NavigateTo();
            AllCountriesList countriesList = new AllCountriesList(this.driver);

            countriesList.EuroCountriesNavigateTo();
            List <string> country     = new List <string>();
            CountryFlag   flagCountry = new CountryFlag(this.driver);

            country = countriesList.ContainerAllCountries;
            for (int i = 0; i < country.Count; i++)
            {
                flagCountry.ScreenshotCountryMap(country[i]);
                //flagCountry.ScreenshotCountryMap(countriesList.ContainerAllCountries[i].Text);
            }
        }