Created
May 24, 2017 16:20
-
-
Save angelovstanton/fcb1abfe1cad899e3a8d398f4bc42a4c 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 FluentBingTests | |
{ | |
private IWebDriver _driver; | |
private BingMainPage _bingPage; | |
[TestInitialize] | |
public void SetupTest() | |
{ | |
_driver = new FirefoxDriver(); | |
_driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30); | |
_bingPage = new BingMainPage(_driver); | |
} | |
[TestCleanup] | |
public void TeardownTest() | |
{ | |
_driver.Quit(); | |
} | |
[TestMethod] | |
public void SearchForImageFuent() | |
{ | |
_bingPage | |
.Navigate() | |
.Search("facebook") | |
.ClickImages() | |
.SetSize(Sizes.Large) | |
.SetColor(Colors.BlackWhite) | |
.SetTypes(Types.Clipart) | |
.SetPeople(People.All) | |
.SetDate(Dates.PastYear) | |
.SetLicense(Licenses.All); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment