Example #1
0
        public override void ExitDo_while_click_command([NotNull] CrawlLangParser.Do_while_click_commandContext context)
        {
            string selector = context.selector().GetText().Trim('\'');

            DoWhileClickCommand doWhileClickCommand = new DoWhileClickCommand(_CurrentBlock, selector,
                                                                              _ExecutionEngine.DoWhileClick_Head,
                                                                              _ExecutionEngine.DoWhileClick_IterationBegin,
                                                                              _ExecutionEngine.DoWhileClick_IterationEnd,
                                                                              _ExecutionEngine.DoWhileClick_Tail);

            _BlockIds.Pop();
            _CurrentBlock.Add(doWhileClickCommand);
        }
 public abstract override void ExitDo_while_click_command([NotNull] CrawlLangParser.Do_while_click_commandContext context);
Example #3
0
 public override void EnterDo_while_click_command([NotNull] CrawlLangParser.Do_while_click_commandContext context)
 {
     _BlockIds.Push(Guid.NewGuid());
     _CommandBlocks.Add(_CurrentBlockId, new List <ICommand>());
 }