Skip to content

Instantly share code, notes, and snippets.

@executeautomation
Created August 11, 2021 21:25
Show Gist options
  • Save executeautomation/81d5d81e8326276dfbbccd71454b1c85 to your computer and use it in GitHub Desktop.
Save executeautomation/81d5d81e8326276dfbbccd71454b1c85 to your computer and use it in GitHub Desktop.
public class SecondSeleniumTest : IClassFixture<WebDriverFixture>
{
private readonly WebDriverFixture webDriverFixture;
private readonly ITestOutputHelper testOutputHelper;
public SecondSeleniumTest(WebDriverFixture webDriverFixture, ITestOutputHelper testOutputHelper)
{
this.webDriverFixture = webDriverFixture;
this.testOutputHelper = testOutputHelper;
}
[Fact]
public void ClassFixtureTestNavigate()
{
testOutputHelper.WriteLine("First test");
webDriverFixture.ChromeDriver
.Navigate()
.GoToUrl("http://eaapp.somee.com");
var anchor = webDriverFixture.ChromeDriver
.FindElementsByTagName("a");
anchor.Should().HaveCountGreaterThan(2);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment