Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public class HomePageTests : IDisposable
  2. {
  3. private ISelenium selenium;
  4.  
  5. public HomePageTests()
  6. {
  7. SeleniumServer.Start();
  8.  
  9. selenium = new DefaultSelenium("localhost", 80, "*chrome", "");
  10. selenium.Start();
  11. }
  12.  
  13. public void Dispose()
  14. {
  15. selenium.Stop();
  16. SeleniumServer.Stop();
  17. }
  18.  
  19. [Fact]
  20. public void ShouldOpenHomePage()
  21. {
  22. selenium.Open("/");
  23. selenium.WaitForPageToLoad("30000");
  24.  
  25. Assert.True(selenium.IsTextPresent("İhtiyaç Kredisi"));
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement