public void RunMultiBrowserEmulatorTests(Emulator emulator, DeviceOrientation orientation) { _testSettings.TestType = TestType.EmulatorBrowser; _testSettings.DriverType = WebDriverType.EmulatorBrowser; _testSettings.TestDirectory = _testSettings.TestDirectory + "\\Emulator Browsers\\"; _driver = WebDriverManager.InitializeMultiBrowserEmulatorDriver(_testSettings, emulator, orientation, _testOutputHelper); if (_driver == null) { throw new NullReferenceException("_driver cannot be null"); } PerformTest(); _driver.Close(); }
public void RunStandaloneBrowserTests(WebDriverType driverType, decimal version) { _testSettings.TestType = TestType.StandaloneBrowser; _testSettings.DriverType = driverType; _testSettings.TestDirectory = _testSettings.TestDirectory + "\\Standalone Browsers\\"; _driver = WebDriverManager.InitializeStandaloneBrowserDriver(_testSettings, version, _testOutputHelper); if (_driver == null) { throw new NullReferenceException("_driver cannot be null"); } PerformTest(); _driver.Close(); }
public void RunInstalledBrowserTests(WebDriverType driverType) { _testSettings.TestType = TestType.InstalledBrowser; _testSettings.DriverType = driverType; _testSettings.TestDirectory = _testSettings.TestDirectory + "\\Installed Browsers\\"; _driver = WebDriverManager.InitializeInstalledBrowserDriver(_testSettings, _testOutputHelper); if (_driver == null) { throw new NullReferenceException("_driver cannot be null"); } PerformTest(); _driver.Close(); }
public void RunMultiBrowserEmulatorTests(Emulator emulator, DeviceOrientation orientation) { _testSettings.TestType = TestType.EmulatorBrowser; _testSettings.DriverType = WebDriverType.ChromeDriver; _testSettings.TestDirectory = _testSettings.TestDirectory + "\\Emulator Browsers\\"; _driver = WebDriverManager.InitializeMultiBrowserEmulatorDriver(_testSettings, emulator, orientation, _testOutputHelper); if (_driver == null) { throw new NullReferenceException("_driver cannot be null"); } PerformTest(); _driver.Close(); }