Exemple #1
0
 public StackFrameHandler(IStackFrameHandler parent, StackFrameScope scopeType, ISeleniumScriptLogger seleniumScriptLogger)
 {
     this.seleniumScriptLogger = seleniumScriptLogger;
     this.parent    = parent;
     this.scopeType = scopeType;
 }
 public IStackFrameHandler Create(IStackFrameHandler parent, StackFrameScope stackFrameScopeType, ISeleniumScriptLogger seleniumScriptLogger)
 {
     return(new StackFrameHandler(parent, stackFrameScopeType, seleniumScriptLogger));
 }
 public void Push(StackFrameScope stackFrameScopeType)
 {
     seleniumScriptLogger.Log($"Pushing scope with type {stackFrameScopeType} on top of call stack");
     stackFrames.Push(new StackFrameHandler(stackFrames.Count > 0 ? Current : globalStackFrame, stackFrameScopeType, seleniumScriptLogger));
 }