public void CreateAndAttachScreenshotPasses()
 {
     System.Console.WriteLine($"Thread used in test: {Thread.CurrentThread.ManagedThreadId}");
     Screenshot.Attach();
     Assert.True(File.Exists(WebTestContext.Get <string>(Constants.ScreenshotFileKey)), "Screenshot file not found");
     screenshotFile = WebTestContext.Get <string>(Constants.ScreenshotFileKey);
 }
        public virtual void TestTearDown()
        {
            try {
                if (TestContext.CurrentContext.Result.Outcome != ResultState.Success)
                {
                    Screenshot.Attach();
                }

                TestLogs.AddSection($"Test {TestContext.CurrentContext.Test.Name} Ends");
                TestLogs.Attach();
            } catch (Exception e) {
                throw new Exception($"Teardown failed. Urgent attention required!!! Exception: \n {e}");
            } finally {
                MobileDriver.Dispose();
            }
        }