예제 #1
0
        public override void ExitGoto_click_command([NotNull] CrawlLangParser.Goto_click_commandContext context)
        {
            string           selector         = context.selector().GetText().Trim('\'');
            GotoClickCommand gotoClickCommand = new GotoClickCommand(_CurrentBlock, selector,
                                                                     _ExecutionEngine.GotoClick_Head,
                                                                     _ExecutionEngine.GotoClick_Tail);

            _BlockIds.Pop();
            _CurrentBlock.Add(gotoClickCommand);
        }
 public abstract override void ExitGoto_click_command([NotNull] CrawlLangParser.Goto_click_commandContext context);
예제 #3
0
 public override void EnterGoto_click_command([NotNull] CrawlLangParser.Goto_click_commandContext context)
 {
     _BlockIds.Push(Guid.NewGuid());
     _CommandBlocks.Add(_CurrentBlockId, new List <ICommand>());
 }