Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HomePageTests : IDisposable
- {
- private ISelenium selenium;
- public HomePageTests()
- {
- SeleniumServer.Start();
- selenium = new DefaultSelenium("localhost", 80, "*chrome", "");
- selenium.Start();
- }
- public void Dispose()
- {
- selenium.Stop();
- SeleniumServer.Stop();
- }
- [Fact]
- public void ShouldOpenHomePage()
- {
- selenium.Open("/");
- selenium.WaitForPageToLoad("30000");
- Assert.True(selenium.IsTextPresent("İhtiyaç Kredisi"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement