//[Test, Description("Verify User is able to Edit the content in Blank Draft in Left GDOC")]
 public void TC_05_ValidationOfScreenEnhancementWhenUserEditsBlankDraftContentInLeftGdoc()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         CreateDraftPage createDraft = new CreateDraftPage(driver);
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickNewDraft();
         String draftName = createDraft.EnterValidDraftName();
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickOnBlankDraft();
         System.Threading.Thread.Sleep(5000);
         String path1 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path1, "Creating Blank Draft");
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(5000);
         AddProjectPage addProject = new AddProjectPage(driver);
         addProject.ClickNotifications();
         // createDraft.ClikOnBackdrop();
         String path2 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path2, "Created a Draft");
         addProject.BackToProject();
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(8000);
         auth.LeftDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
         IWebElement framel = auth.EnterIntoLeftFrame();
         driver.SwitchTo().Frame(framel);
         System.Threading.Thread.Sleep(5000);
         driver.SwitchTo().ActiveElement();
         auth.ClickGdocLeft();
         driver.SwitchTo().ActiveElement().SendKeys("SELENIUM_TEST_123");
         System.Threading.Thread.Sleep(15000);
         String path3 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path3, "Editing Existing Draft in GDOC Left");
         driver.SwitchTo().DefaultContent();
         auth.RightDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }
Esempio n. 2
0
 // [Test, Description("Verify user is able to do GDoc Enhancement for Uploaded Image")]
 public void TC_02_ValidateGdocEnhancementsForUploadOfImage()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         //System.Threading.Thread.Sleep(5000);
         AddProjectPage addProject = new AddProjectPage(driver);
         //addProject.ClickAddProject();
         //System.Threading.Thread.Sleep(3000);
         //String expected = addProject.EnterProjectTitle();
         //System.Threading.Thread.Sleep(5000);
         //addProject.ClickContentType();
         //System.Threading.Thread.Sleep(15000);
         //addProject.ClickSourceControlTypeGitLab();
         //System.Threading.Thread.Sleep(25000);
         //addProject.ClickRepository();
         //System.Threading.Thread.Sleep(5000);
         //addProject.EnterPublishedPath("Publishing path to create project");
         //System.Threading.Thread.Sleep(5000);
         //addProject.EnterDescription("This is to create Project");
         //System.Threading.Thread.Sleep(5000);
         //addProject.ClickCreateProject();
         //System.Threading.Thread.Sleep(25000);
         //addProject.ClickNotifications();
         //System.Threading.Thread.Sleep(5000);
         //String status = addProject.GetNotificationStatus();
         //String projectDetails = addProject.GetCreatedProject();
         //String path = TakeScreenshot(driver);
         //addProject.SuccessScreenshot(path, "Project Created Successfully");
         //Assert.IsTrue(VerifyText("Success", status, "Project is Created with status:" + status + "", "Project is not created with status: " + status + ""));
         //addProject.BackToProject();
         //System.Threading.Thread.Sleep(15000);
         //CreateDistributionPage distmodule = new CreateDistributionPage(driver);
         //System.Threading.Thread.Sleep(3000);
         //distmodule.SearchForProject(expected);
         //System.Threading.Thread.Sleep(3000);
         //distmodule.ClickDistribution();
         //System.Threading.Thread.Sleep(8000);
         //String expected1 = distmodule.EnterDistirbutionName();
         //System.Threading.Thread.Sleep(75000);
         //distmodule.ClickBranchWithTOC();
         //System.Threading.Thread.Sleep(5000);
         //distmodule.EnterTocPath();
         //distmodule.EnterDescription("This is to create a distribution");
         //System.Threading.Thread.Sleep(5000);
         //distmodule.ClickCreateDistribution();
         //System.Threading.Thread.Sleep(40000);
         //addProject.ClickNotifications();
         //System.Threading.Thread.Sleep(15000);
         //String status1 = addProject.GetNotificationStatus();
         //String path1 = TakeScreenshot(driver);
         //addProject.SuccessScreenshot(path1, "Distribution got Created successfully");
         //Assert.IsTrue(VerifyText("Success", status1, "Distribution is Created with status:" + status1 + "", "Distribution is not created with status: " + status1 + ""));
         //addProject.BackToProject();
         System.Threading.Thread.Sleep(5000);
         CreateDistributionPage distmodule = new CreateDistributionPage(driver);
         System.Threading.Thread.Sleep(3000);
         distmodule.SearchForProject("TestQA_CK");
         System.Threading.Thread.Sleep(3000);
         CreateDraftPage createDraft = new CreateDraftPage(driver);
         System.Threading.Thread.Sleep(8000);
         createDraft.CLICKOPENPROJECT();
         System.Threading.Thread.Sleep(10000);
         createDraft.ClikOnBackdrop();
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(8000);
         auth.ClickInsertImage();
         System.Threading.Thread.Sleep(25000);
         Console.WriteLine("*******HERE iS RESULT" + result);
         String str = result.Split(new[] { ' ' }).Skip(2).FirstOrDefault();
         Console.WriteLine("*******HERE iS RESULT" + str);
         auth.EnterAssetName(str);
         System.Threading.Thread.Sleep(25000);
         String path2 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path2, "Verifying Uploaded Image");
         auth.SelectImageFromUpload(result);
         CreateDraftPage createDraft1 = new CreateDraftPage(driver);
         System.Threading.Thread.Sleep(5000);
         createDraft1.ClickNewDraft();
         String draftName = createDraft.EnterValidDraftName();
         System.Threading.Thread.Sleep(5000);
         createDraft1.ClickOnBlankDraft();
         System.Threading.Thread.Sleep(5000);
         String path3 = TakeScreenshot(driver);
         createDraft1.SuccessScreenshot(path3, "Creating Blank Draft: " + draftName + "");
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(5000);
         addProject.ClickNotifications();
         System.Threading.Thread.Sleep(5000);
         addProject.BackToProject();
         AuthoringScreenEnhancements auth1 = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(5000);
         auth1.LeftDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
         IWebElement framel = auth1.EnterIntoLeftFrame();
         driver.SwitchTo().Frame(framel);
         System.Threading.Thread.Sleep(5000);
         driver.SwitchTo().ActiveElement();
         auth1.ClickGdocLeft();
         driver.SwitchTo().ActiveElement().SendKeys(Keys.Control + "v");
         System.Threading.Thread.Sleep(5000);
         String path5 = TakeScreenshot(driver);
         auth1.SuccessScreenshot(path5, "pasting the image Url in Gdoc");
         driver.SwitchTo().DefaultContent();
         System.Threading.Thread.Sleep(5000);
         auth1.PreviewLeftTab();
         String path6 = TakeScreenshot(driver);
         auth1.SuccessScreenshot(path6, "Verifying the image got reflected in Preview Left");
         System.Threading.Thread.Sleep(5000);
         auth.GdocLeftTab();
         // auth.ClickDashboard();
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }
Esempio n. 3
0
 //   [Test, Description("Verify User is able to replace an Image")]
 public void TC_04_ValidateUserIsAbleToReplaceImage()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         //CreateDistributionPage distmodule = new CreateDistributionPage(driver);
         //System.Threading.Thread.Sleep(5000);
         //distmodule.SearchForProject("TestQA_CK");
         CreateDraftPage createDraft = new CreateDraftPage(driver);
         //System.Threading.Thread.Sleep(8000);
         //createDraft.CLICKOPENPROJECT();
         //System.Threading.Thread.Sleep(8000);
         //createDraft.ClikOnBackdrop();
         //System.Threading.Thread.Sleep(5000);
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         auth.ClickInsertImage();
         System.Threading.Thread.Sleep(15000);
         Console.WriteLine("*******HERE iS RESULT" + result);
         String str = result.Split(new[] { ' ' }).Skip(2).FirstOrDefault();
         Console.WriteLine("*******HERE iS RESULT" + str);
         auth.EnterAssetName(str);
         String path1 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path1, "Select an Image from Uploads");
         System.Threading.Thread.Sleep(25000);
         auth.SelectImageFromUpload(result);
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickNewDraft();
         String draftName = createDraft.EnterValidDraftName();
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickOnBlankDraft();
         System.Threading.Thread.Sleep(5000);
         String path2 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path2, "Creating Blank Draft: " + draftName + "");
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(5000);
         AddProjectPage addProject = new AddProjectPage(driver);
         addProject.ClickNotifications();
         // createDraft.ClikOnBackdrop();
         String path3 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path3, "Created a Draft");
         addProject.BackToProject();
         auth.LeftDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
         IWebElement framel = auth.EnterIntoLeftFrame();
         driver.SwitchTo().Frame(framel);
         System.Threading.Thread.Sleep(5000);
         driver.SwitchTo().ActiveElement();
         auth.ClickGdocLeft();
         driver.SwitchTo().ActiveElement().SendKeys(Keys.Control + "v");
         System.Threading.Thread.Sleep(15000);
         String path4 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path4, "pasting the image Asset Id in Gdoc");
         driver.SwitchTo().DefaultContent();
         System.Threading.Thread.Sleep(5000);
         auth.PreviewLeftTab();
         String path5 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path5, "Verifying the image got reflected in Preview Left");
         auth.GdocLeftTab();
         auth.ClickInsertImage();
         System.Threading.Thread.Sleep(25000);
         Console.WriteLine("*******HERE iS RESULT" + result);
         String str1 = result.Split(new[] { ' ' }).Skip(2).FirstOrDefault();
         Console.WriteLine("*******HERE iS RESULT" + str1);
         auth.EnterAssetName(str1);
         System.Threading.Thread.Sleep(25000);
         auth.ReplaceTheImage(result);
         String path8 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path8, "Verifying the image got replaced with new Image");
         auth.SelectImageFromUpload(result);
         System.Threading.Thread.Sleep(25000);
         auth.LeftDraftDropDown(draftName);
         String path6 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path6, "The same image Url in Gdoc Which was added earlier");
         driver.SwitchTo().DefaultContent();
         auth.PreviewLeftTab();
         String path7 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path7, "Verifying the image got replaced Succesfully in Preview Left");
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }
 //[Test, Description("Verify User able to view Updated Content of Live Draft in Coder Draft and vice-versa")]
 public void TC_06_ValidateContentInLiveDraftShouldUpdateInCoderDraft()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(5000);
         auth.LeftLiveDraft();
         System.Threading.Thread.Sleep(5000);
         auth.MDLeftTab();
         System.Threading.Thread.Sleep(5000);
         CreateDraftPage createDraft = new CreateDraftPage(driver);
         String          path1       = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path1, "Content in Live Draft Before Update");
         System.Threading.Thread.Sleep(5000);
         auth.LeftCoderDraft();
         System.Threading.Thread.Sleep(5000);
         String path2 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path2, "Content in Coder Draft Before Update");
         createDraft.ClickNewDraft();
         System.Threading.Thread.Sleep(5000);
         String draftName1 = createDraft.EnterValidDraftName();
         createDraft.ClickOnBlankDraft();
         System.Threading.Thread.Sleep(5000);
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(5000);
         AddProjectPage addProject = new AddProjectPage(driver);
         addProject.ClickNotifications();
         System.Threading.Thread.Sleep(5000);
         String path5 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path5, "Created a Blank Draft");
         addProject.BackToProject();
         System.Threading.Thread.Sleep(5000);
         AuthoringScreenEnhancements auth1 = new AuthoringScreenEnhancements(driver);
         auth1.LeftDraftDropDown(draftName1);
         auth1.GdocLeftTab();
         System.Threading.Thread.Sleep(5000);
         IWebElement framel = auth1.EnterIntoLeftFrame();
         driver.SwitchTo().Frame(framel);
         System.Threading.Thread.Sleep(5000);
         driver.SwitchTo().ActiveElement();
         auth1.ClickGdocLeft();
         driver.SwitchTo().ActiveElement().SendKeys("SELENIUM_TEST_123");
         System.Threading.Thread.Sleep(15000);
         driver.SwitchTo().DefaultContent();
         auth1.RightDraftDropDown(draftName1);
         System.Threading.Thread.Sleep(5000);
         auth1.ClickAcceptDraftToLive();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(15000);
         addProject.ClickNotifications();
         System.Threading.Thread.Sleep(5000);
         String path6 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path6, "Created a Blank Live Draft");
         addProject.BackToProject();
         System.Threading.Thread.Sleep(5000);
         auth1.LeftLiveDraft();
         System.Threading.Thread.Sleep(5000);
         auth.MDLeftTab();
         System.Threading.Thread.Sleep(5000);
         String path7 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path7, "Content in Live Draft after Update");
         System.Threading.Thread.Sleep(5000);
         auth.LeftCoderDraft();
         System.Threading.Thread.Sleep(5000);
         auth.RightCoderDraft();
         System.Threading.Thread.Sleep(5000);
         String path8 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path8, "Content in Coder Draft after Update");
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }
 //[Test, Description("Verify User is able to edit the existing draft content in Left side GDOC")]
 public void TC_01_ValidateScreenEnhancementsWhenUserEditsExistingContentInLeftGdoc()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         System.Threading.Thread.Sleep(5000);
         AddProjectPage addProject = new AddProjectPage(driver);
         addProject.ClickAddProject();
         System.Threading.Thread.Sleep(3000);
         String expected = addProject.EnterProjectTitle();
         System.Threading.Thread.Sleep(5000);
         addProject.ClickContentType();
         System.Threading.Thread.Sleep(15000);
         addProject.ClickSourceControlTypeGitLab();
         System.Threading.Thread.Sleep(5000);
         addProject.ClickRepository();
         System.Threading.Thread.Sleep(5000);
         addProject.EnterPublishedPath("Publishing path to create project");
         System.Threading.Thread.Sleep(5000);
         addProject.EnterDescription("This is to create Project");
         System.Threading.Thread.Sleep(5000);
         addProject.ClickCreateProject();
         System.Threading.Thread.Sleep(25000);
         addProject.ClickNotifications();
         System.Threading.Thread.Sleep(5000);
         String status         = addProject.GetNotificationStatus();
         String projectDetails = addProject.GetCreatedProject();
         String path           = TakeScreenshot(driver);
         addProject.SuccessScreenshot(path, "Project Created Successfully");
         Assert.IsTrue(VerifyText("Success", status, "Project is Created with status:" + status + "", "Project is not created with status: " + status + ""));
         addProject.BackToProject();
         System.Threading.Thread.Sleep(15000);
         CreateDistributionPage distmodule = new CreateDistributionPage(driver);
         System.Threading.Thread.Sleep(3000);
         distmodule.SearchForProject(expected);
         System.Threading.Thread.Sleep(3000);
         distmodule.ClickDistribution();
         System.Threading.Thread.Sleep(8000);
         String expected1 = distmodule.EnterDistirbutionName();
         System.Threading.Thread.Sleep(75000);
         distmodule.ClickBranchWithTOC();
         System.Threading.Thread.Sleep(5000);
         distmodule.EnterTocPath();
         distmodule.EnterDescription("This is to create a distribution");
         System.Threading.Thread.Sleep(5000);
         distmodule.ClickCreateDistribution();
         System.Threading.Thread.Sleep(40000);
         addProject.ClickNotifications();
         System.Threading.Thread.Sleep(15000);
         String status1 = addProject.GetNotificationStatus();
         String path1   = TakeScreenshot(driver);
         addProject.SuccessScreenshot(path1, "Distribution got Created successfully");
         Assert.IsTrue(VerifyText("Success", status1, "Distribution is Created with status:" + status1 + "", "Distribution is not created with status: " + status1 + ""));
         addProject.BackToProject();
         System.Threading.Thread.Sleep(5000);
         CreateDraftPage createDraft = new CreateDraftPage(driver);
         System.Threading.Thread.Sleep(8000);
         createDraft.CLICKOPENPROJECT();
         System.Threading.Thread.Sleep(10000);
         createDraft.ClikOnBackdrop();
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickNewDraft();
         System.Threading.Thread.Sleep(5000);
         String draftName = createDraft.EnterValidDraftName();
         createDraft.SelectCoderDraft();
         System.Threading.Thread.Sleep(5000);
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         addProject.ClickNotifications();
         System.Threading.Thread.Sleep(8000);
         String status2 = addProject.GetNotificationStatus();
         String path2   = TakeScreenshot(driver);
         addProject.SuccessScreenshot(path2, "Draft got Created Successfully");
         Assert.IsTrue(VerifyText("Success", status2, "Draft: " + draftName + " is Created with status:" + status2 + "", "Draft is not created with status: " + status2 + ""));
         addProject.BackToProject();
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(8000);
         auth.LeftDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
         IWebElement framel = auth.EnterIntoLeftFrame();
         driver.SwitchTo().Frame(framel);
         System.Threading.Thread.Sleep(5000);
         driver.SwitchTo().ActiveElement();
         auth.ClickGdocLeft();
         driver.SwitchTo().ActiveElement().SendKeys("SELENIUM_TEST_123");
         System.Threading.Thread.Sleep(15000);
         String path3 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path3, "Editing Existing Draft in GDOC Left");
         driver.SwitchTo().DefaultContent();
         auth.RightDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }
 //[Test, Description("Verify User is able to view the same content after a new draft is created with existing draft")]
 public void TC_09_ValidationOfContentAftercreationOfNewDraftWithExistingContent()
 {
     try
     {
         String TestName    = (TestContext.CurrentContext.Test.Name.ToString());
         String description = TestContext.CurrentContext.Test.Properties.Get("Description").ToString();
         CreateTest(TestName, description);
         CreateDraftPage createDraft = new CreateDraftPage(driver);
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickNewDraft();
         String draftName = createDraft.EnterValidDraftName();
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickOnBlankDraft();
         System.Threading.Thread.Sleep(5000);
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(8000);
         AddProjectPage addProject = new AddProjectPage(driver);
         addProject.ClickNotifications();
         // createDraft.ClikOnBackdrop();
         String path1 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path1, "Creating Blank Draft Named ** " + draftName + "");
         addProject.BackToProject();
         AuthoringScreenEnhancements auth = new AuthoringScreenEnhancements(driver);
         System.Threading.Thread.Sleep(5000);
         auth.LeftDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
         IWebElement framel = auth.EnterIntoLeftFrame();
         driver.SwitchTo().Frame(framel);
         System.Threading.Thread.Sleep(5000);
         driver.SwitchTo().ActiveElement();
         auth.ClickGdocLeft();
         driver.SwitchTo().ActiveElement().SendKeys("SELENIUM_TEST_123" + Keys.Enter + "<br></br><a></a>" + Keys.Enter + "<dw-image>5a719f8b1d0d3a3450aee4bf</dw-image>");
         System.Threading.Thread.Sleep(15000);
         driver.SwitchTo().DefaultContent();
         auth.RightDraftDropDown(draftName);
         System.Threading.Thread.Sleep(5000);
         String path2 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path2, "Edited Blank Draft in GDOC Left");
         System.Threading.Thread.Sleep(5000);
         createDraft.ClickNewDraft();
         System.Threading.Thread.Sleep(5000);
         String draftName1 = createDraft.EnterValidDraftName();
         createDraft.SelectExistingDraft();
         System.Threading.Thread.Sleep(5000);
         createDraft.CreateDraft();
         System.Threading.Thread.Sleep(15000);
         System.Threading.Thread.Sleep(18000);
         addProject.ClickNotifications();
         // createDraft.ClikOnBackdrop();
         String path3 = TakeScreenshot(driver);
         createDraft.SuccessScreenshot(path3, "Creating a Existing Draft Named:   " + draftName1 + "");
         addProject.BackToProject();
         System.Threading.Thread.Sleep(5000);
         auth.LeftDraftDropDown(draftName1);
         System.Threading.Thread.Sleep(5000);
         auth.RightDraftDropDown(draftName1);
         System.Threading.Thread.Sleep(5000);
         String path4 = TakeScreenshot(driver);
         auth.SuccessScreenshot(path4, "Content of the exisiting Draft:  " + draftName1 + " in Gdoc Left Based on Draft: " + draftName + " ");
     }
     catch (AssertionException)
     {
         fail("Assertion failed");
         throw;
     }
 }