// [Test, Description("Verify User is Unable to Upload Invalid Images")] public void TC_05_ValidateUploadOfInvalidImages() { try { String TestName = (TestContext.CurrentContext.Test.Name.ToString()); String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString(); CreateTest(TestName, description); Console.WriteLine("Entered into testcase"); AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver); System.Threading.Thread.Sleep(8000); auth.ClickMedia(); System.Threading.Thread.Sleep(9000); auth.UploadInvalidImages(); System.Threading.Thread.Sleep(8000); String path1 = TakeScreenshot(driver); auth.SuccessScreenshot(path1, "Unable to Upload Image"); System.Threading.Thread.Sleep(5000); auth.ClickDashboard(); } catch (AssertionException) { fail("Assertion failed"); throw; } }