Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. using Shouldly;
  2. using TestContentFromPdf.Extension;
  3. using TestContentFromPdf.Pages;
  4. using Xunit;
  5.  
  6. namespace TestContentFromPdf.Tests
  7. {
  8. public class TestContentFromPdf : BaseTest
  9. {
  10. [Fact]
  11. public void GoToSiteWithMakeSmallChangesPdf_WhenIDownloadIt_CheckContainingOfDefineTextInPdf()
  12. {
  13. var homePage = new HomePage(driver);
  14. homePage.DownloadPdf();
  15. var returnTextFromPdf = driver.ReturnTextFromPdf("MPMW_Tipsheet_7_navigatethebuffet_0").Replace("\n", "");
  16. var text =
  17. "Take a lap around the buffet before you start to fill up your plate. Plan ahead so you know what to choose and what to limit.";
  18. returnTextFromPdf.Contains(text).ShouldBeTrue();
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement