public TooltipPage(IWindowMaximizer windowMaximizer,
                    IWebElementsFinder elementsFinder,
                    IScreenshotMaker screenshotMaker,
                    IMouseActionsBuilder mouseActions)
     : base(windowMaximizer, elementsFinder, screenshotMaker)
 {
     this.mouseActions = mouseActions ?? throw new ArgumentNullException(ExceptionConstants.MOUSE_ACTIONS);
 }
 public ArticlePage(IWindowMaximizer windowMaximizer,
                    IWebElementsFinder elementsFinder,
                    IScreenshotMaker screenshotMaker,
                    IWebPageScroller pageScroller)
     : base(windowMaximizer, elementsFinder, screenshotMaker)
 {
     this.pageScroller = pageScroller ?? throw new ArgumentNullException(ExceptionConstants.PAGE_SCROLLER);
 }
Esempio n. 3
0
 public DotNetFrameworkPage(IWindowMaximizer windowMaximizer,
                            IWebElementsFinder elementFinder,
                            IScreenshotMaker screenshotmaker,
                            IWebPageScroller pageScroller,
                            IMouseActionsBuilder mouseActions)
     : base(windowMaximizer, elementFinder, screenshotmaker)
 {
     this.pageScroller = pageScroller ?? throw new ArgumentNullException(ExceptionConstants.PAGE_SCROLLER);
     this.mouseActions = mouseActions ?? throw new ArgumentNullException(ExceptionConstants.MOUSE_ACTIONS);
 }
Esempio n. 4
0
 public HomePage(IWindowMaximizer windowMaximizer,
                 IWebElementsFinder elementsFinder,
                 IScreenshotMaker screenshotMaker,
                 IWebPageNavigator pageNavigator,
                 IMouseActionsBuilder mouseActions)
     : base(windowMaximizer, elementsFinder, screenshotMaker)
 {
     this.pageNavigator = pageNavigator ?? throw new ArgumentNullException(ExceptionConstants.PAGE_NAVIGATOR);
     this.mouseActions  = mouseActions ?? throw new ArgumentNullException(ExceptionConstants.MOUSE_ACTIONS);
 }
Esempio n. 5
0
 public ArticlePage(IWebElementsFinder elementsFinder,
                    IScreenshotMaker screenshotMaker,
                    IWebPageScroller pageScroller,
                    IMouseActionsBuilder mouseActions)
 {
     this.elementsFinder  = elementsFinder ?? throw new ArgumentNullException(ExceptionConstants.ELEMENT_FINDER);
     this.screenshotMaker = screenshotMaker ?? throw new ArgumentNullException(ExceptionConstants.SCREENSHOT_MAKER);
     this.pageScroller    = pageScroller ?? throw new ArgumentNullException(ExceptionConstants.PAGE_SCROLLER);
     this.mouseActions    = mouseActions ?? throw new ArgumentNullException(ExceptionConstants.MOUSE_ACTIONS);
 }
        public BasePage(IWindowMaximizer windowMaximizer,
                        IWebElementsFinder elementsFinder,
                        IScreenshotMaker screenshotMaker)
        {
            this.windowMaximizer = windowMaximizer ?? throw new ArgumentNullException(ExceptionConstants.WINDOW_MAXIMIZER);
            this.elementsFinder  = elementsFinder ?? throw new ArgumentNullException(ExceptionConstants.ELEMENT_FINDER);
            this.screenshotMaker = screenshotMaker ?? throw new ArgumentNullException(ExceptionConstants.SCREENSHOT_MAKER);

            this.windowMaximizer.MaximizeBrowserWindow();
        }