Created
February 12, 2017 15:35
-
-
Save angelovstanton/a21859e237530bb3ff20a9c37147d6cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestClass] | |
public class AutomateThePlanetTest | |
{ | |
private IWebDriver driver; | |
public TestContext TestContext { get; set; } | |
[TestInitialize] | |
public void SetupTest() | |
{ | |
this.driver = new PhantomJSDriver(); | |
this.driver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 30)); | |
} | |
[TestCleanup] | |
public void TeardownTest() | |
{ | |
this.driver.Quit(); | |
} | |
[TestMethod] | |
public void TestInTheCloud() | |
{ | |
var homePage = new HomePage(this.driver); | |
homePage.Navigate(); | |
homePage.AssertHeadline(); | |
homePage.GoToBlog(); | |
var blogPage = new BlogPage(this.driver); | |
blogPage.WaitForSubscribeWidget(); | |
blogPage.AssertTitle(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment