Example #1
0
 internal ChromeSession(ChromeSessionInfo chromeSessionInfo, Chrome chrome)
 {
     this.Id         = chromeSessionInfo.Id;
     internalSession = new BaristaLabs.ChromeDevTools.Runtime.ChromeSession(chromeSessionInfo.WebSocketDebuggerUrl);
     this.chrome     = chrome;
     Task.WaitAll(InitializePage());
 }
        internal ChromeSession(ChromeSessionInfo chromeSessionInfo, Chrome chrome, int commandTimeout = 120)
        {
            Id              = chromeSessionInfo.Id;
            _chrome         = chrome;
            InternalSession = new BaristaLabs.ChromeDevTools.Runtime.ChromeSession(chromeSessionInfo.WebSocketDebuggerUrl)
            {
                //TODO: move to config
                CommandTimeout = commandTimeout * 1000
            };
            InternalNativeSession = chromeSessionInfo;

            Task.WaitAll(InitializePage());
        }
 internal void InnerDispose()
 {
     InternalSession.Dispose();
     InternalSession = null;
 }
Example #4
0
 internal void innerDispose()
 {
     internalSession.Dispose();
     internalSession = null;
 }