public static Size GetWindowSize(TabletWindowSize windowSize) { Size result = default; switch (windowSize) { case TabletWindowSize._768_1024: result = new Size(768, 1024); break; case TabletWindowSize._1280_800: result = new Size(1280, 800); break; case TabletWindowSize._600_1024: result = new Size(600, 1024); break; case TabletWindowSize._601_962: result = new Size(601, 962); break; case TabletWindowSize._800_1280: result = new Size(800, 1280); break; case TabletWindowSize._1024_600: result = new Size(1024, 600); break; } return(result); }
public SauceLabsAttribute( BrowserType browser, string browserVersion, string platform, TabletWindowSize tabletWindowSize, BrowserBehavior behavior = BrowserBehavior.NotSet, bool recordVideo = false, bool recordScreenshots = false, bool shouldAutomaticallyScrollToVisible = true) : this(browser, browserVersion, platform, behavior, recordVideo, recordScreenshots, shouldAutomaticallyScrollToVisible) => ScreenResolution = WindowsSizeResolver.GetWindowSize(tabletWindowSize).ConvertToString();
public SelenoidAttribute( BrowserType browser, string browserVersion, TabletWindowSize tabletWindowSize, BrowserBehavior behavior = BrowserBehavior.NotSet, bool recordVideo = false, bool enableVnc = false, bool saveSessionLogs = false, bool shouldAutomaticallyScrollToVisible = true) : this(browser, browserVersion, behavior, recordVideo, enableVnc, saveSessionLogs, shouldAutomaticallyScrollToVisible) => ScreenResolution = WindowsSizeResolver.GetWindowSize(tabletWindowSize).ConvertToStringWithColorDepth();
public CrossBrowserTestingAttribute( BrowserType browser, string browserVersion, string platform, TabletWindowSize tabletWindowSize, BrowserBehavior behavior = BrowserBehavior.NotSet, bool captureVideo = false, bool captureNetworkLogs = false, string build = null, bool shouldAutomaticallyScrollToVisible = true) : this(browser, browserVersion, platform, behavior, captureVideo, captureNetworkLogs, build, shouldAutomaticallyScrollToVisible) => ScreenResolution = WindowsSizeResolver.GetWindowSize(tabletWindowSize).ConvertToString();
public BrowserStackAttribute( BrowserType browser, string browserVersion, string operatingSystem, string osVersion, TabletWindowSize tabletWindowSize, Lifecycle behavior = Lifecycle.NotSet, bool captureVideo = false, bool captureNetworkLogs = false, BrowserStackConsoleLogType browserStackConsoleLogType = BrowserStackConsoleLogType.Disable, bool debug = false, string build = null) : this(browser, browserVersion, operatingSystem, osVersion, behavior, captureVideo, captureNetworkLogs, browserStackConsoleLogType, debug, build) => ScreenResolution = WindowsSizeResolver.GetWindowSize(tabletWindowSize).ConvertToString();
public RemoteAttribute(BrowserType browser, string browserVersion, PlatformType platform, TabletWindowSize tabletWindowSize, BrowserBehavior behavior = BrowserBehavior.NotSet, bool shouldAutomaticallyScrollToVisible = true) : base(browser, tabletWindowSize, behavior, shouldAutomaticallyScrollToVisible) { BrowserVersion = browserVersion; PlatformType = platform; ExecutionType = ExecutionType.Grid; }
public AppAttribute(string appPath, TabletWindowSize tabletWindowSize, Lifecycle behavior = Lifecycle.NotSet) : this(appPath, behavior) { AppConfiguration.Size = WindowsSizeResolver.GetWindowSize(tabletWindowSize); }