public static void CreateADataSourceMapping_VarYr()

        {
            HomePage homepage = new HomePage();
            SelectedSpecificationDataSourcePage selectedspecificationdatasourcepage = new SelectedSpecificationDataSourcePage();
            SelectSourceDatasetsPage            selectsourcedatasetspage            = new SelectSourceDatasetsPage();
            MapDataSourcesToDatasetsPage        mapdatasourcestodatasetpage         = new MapDataSourcesToDatasetsPage();

            homepage.Header.Click();
            Thread.Sleep(2000);

            NavigateTo.MapDataSourcesToDatasetsPage();
            Thread.Sleep(2000);

            var    specName      = ScenarioContext.Current["SpecificationName"];
            string specCreated   = specName.ToString();
            string specCreatedID = specName.ToString().Replace("Test Spec Name ", "");

            var    specYear   = ScenarioContext.Current["SpecificationYear"];
            string specAcYear = specYear.ToString();

            var selectYear    = mapdatasourcestodatasetpage.mapDataSourcesSpecficationYearDropDown;
            var selectElement = new SelectElement(selectYear);

            selectElement.SelectByValue(specAcYear);
            Thread.Sleep(2000);

            mapdatasourcestodatasetpage.mapDataSourcesSearchTermField.SendKeys(specCreatedID);
            mapdatasourcestodatasetpage.mapDataSourcesSearchTermButton.Click();
            Thread.Sleep(4000);

            Actions.MapDataSourcesToDatasetsForSpecification();
            Thread.Sleep(2000);
            selectedspecificationdatasourcepage.specificationDataSourceCount.Should().NotBeNull();

            selectedspecificationdatasourcepage.specificationDataSourceMissing.Click();
            Thread.Sleep(2000);
            selectsourcedatasetspage.selectSourceDatasetSaveButton.Should().NotBeNull();

            Actions.SelectSourceDatasetsRadioOption();
            Thread.Sleep(2000);
            Actions.SelectSourceDatasetVersionRadioOption();
            Thread.Sleep(2000);
            selectsourcedatasetspage.selectSourceDatasetSaveButton.Click();
            Thread.Sleep(2000);

            selectedspecificationdatasourcepage.specificationDataSourceMissing.Should().NotBeNull();
            selectedspecificationdatasourcepage.specificationDataSourceAddedAlert.Displayed.Should().BeTrue();
            Thread.Sleep(5000);
        }