public IWebDriver CreateSauceDriver(SauceConfiguration sauceConfig)
        {
            var driver = CreateSauceDriver(sauceConfig.Browser, sauceConfig.Version, sauceConfig.OS,
                                           sauceConfig.DeviceName, sauceConfig.DeviceOrientation);

            ((IJavaScriptExecutor)driver).ExecuteScript($"sauce:job-name={sauceConfig.TestCaseName}");
            return(driver);
        }
        public void SetupForEverySingleTestMethod()
        {
            var sauceConfig = new SauceConfiguration
            {
                Browser           = Browser,
                Version           = Version,
                OS                = OS,
                DeviceName        = DeviceName,
                DeviceOrientation = DeviceOrientation,
                TestCaseName      = TestContext.CurrentContext.Test
            };

            Driver = new WebDriverFactory().CreateSauceDriver(sauceConfig);
        }