Ejemplo n.º 1
0
        private async void Learn()
        {
            if (!mWizard.IsLearningWasDone)
            {
                mWizard.ProcessStarted();
                mWinExplorer = mWizard.WinExplorer;


                //Dictionary<string, List<string>> filteringCriteriasDict = mWinExplorer.GetFilteringCreteriaDict();

                mRequestedElementTypesDict = SeleniumDriver.GetFilteringCreteriaDict(mWizard.CheckedFilteringCreteriaList);
                mRequestedElementTagList   = mRequestedElementTypesDict.Keys.Select(x => x.ToUpper()).ToList();

                //mRequestedElementTypesList = mWizard.CheckedFilteringCreteriaList.Select(x => x.ElementType.ToString()).ToList();

                mWizard.IsLearningWasDone = await GetElementsFromPage();

                mWizard.ProcessEnded();
            }
        }