Created
August 11, 2021 21:25
-
-
Save executeautomation/81d5d81e8326276dfbbccd71454b1c85 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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