Exemple #1
0
        private void ExecuteElement(IDataWebScraperStep dataWebScraperStep, WebBrowser webBrowser)
        {
            if (dataWebScraperStep != null)
            {
                IDataWebScraperStepRunnable dataWebScraperStepRunnable = DataWebScraperToRunnableConverter.Convert(dataWebScraperStep);

                _currentDataWebScraperStepRunnable = dataWebScraperStepRunnable;

                dataWebScraperStepRunnable.StepWasCompleted += DataWebScraperStepRunnable_StepWasCompleted;
                dataWebScraperStepRunnable.Run(webBrowser);
            }
            else
            {
                DataWebScraperSelfIteratorWasComplete?.Invoke(this, null);
            }
        }
Exemple #2
0
 public DataWebScraperSelfIterator(DataWebScraperToRunnableConverter dataWebScraperToRunnableConverter, WebBrowser webBrowser)
 {
     DataWebScraperToRunnableConverter = dataWebScraperToRunnableConverter;
     WebBrowser = webBrowser;
 }