Beispiel #1
0
 /// <inheritdoc cref="IPage"/>
 internal Page(IPageDelegate pageDelegate, IBrowserContext browserContext)
 {
     FrameManager   = new FrameManager(this);
     Delegate       = pageDelegate;
     BrowserContext = browserContext;
     Keyboard       = new Keyboard(Delegate.RawKeyboard);
     Mouse          = new Mouse(Delegate.RawMouse, Keyboard);
 }
Beispiel #2
0
        /// <inheritdoc cref="IPage"/>
        internal Page(IPageDelegate pageDelegate, IBrowserContext browserContext)
        {
            FrameManager   = new FrameManager(this);
            Delegate       = pageDelegate;
            BrowserContext = browserContext;
            Keyboard       = new Keyboard(Delegate.RawKeyboard);
            Mouse          = new Mouse(Delegate.RawMouse, Keyboard);

            PageState = new PageState {
                Viewport = browserContext.Options.Viewport
            };

            Screenshotter = new Screenshotter(this);
        }