Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created May 24, 2017 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/fcb1abfe1cad899e3a8d398f4bc42a4c to your computer and use it in GitHub Desktop.
Save angelovstanton/fcb1abfe1cad899e3a8d398f4bc42a4c to your computer and use it in GitHub Desktop.
[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