The sample projects are divided into test frameworks used:
PuppeteerSharp.Contrib.Sample.Machine.Specifications
PuppeteerSharp.Contrib.Sample.MSTest
PuppeteerSharp.Contrib.Sample.NUnit
PuppeteerSharp.Contrib.Sample.SpecFlow
PuppeteerSharp.Contrib.Sample.Xunit
All projects runs the following scenarios:
- Search for Puppeteer Sharp on GitHub
- Check that the Puppeteer Sharp master branch builds
- Compare the Puppeteer and Puppeteer Sharp versions
PuppeteerSharpRepoSpecs.cs
contains specs using thePuppeteerSharp.Contrib.Extensions
+PuppeteerSharp.Contrib.Should
libraries
Machine.Specifications does not support async
/ await
.
You can work around this limitation with the Await
and Await<T>
extension methods.
✔️ You may use the sync versions of the extension methods from PuppeteerSharp.Contrib.Extensions
and PuppeteerSharp.Contrib.Should
.
PuppeteerSharpRepoTests.cs
contains tests using thePuppeteerSharp.Contrib.Extensions
+PuppeteerSharp.Contrib.Should
libraries
MSTest supports async
/ await
.
❗ You must use the async versions of the extension methods from PuppeteerSharp.Contrib.Extensions
and PuppeteerSharp.Contrib.Should
!
PuppeteerSharpRepoTests.cs
contains tests using thePuppeteerSharp.Contrib.Extensions
+PuppeteerSharp.Contrib.Should
librariesPageObjects.cs
andPuppeteerSharpRepoPageObjectTests.cs
contains tests using the page object pattern withPuppeteerSharp.Contrib.PageObjects
NUnit supports async
/ await
.
❗ You must use the async versions of the extension methods from PuppeteerSharp.Contrib.Extensions
and PuppeteerSharp.Contrib.Should
!
PuppeteerSharpRepoSteps.cs
contains step definitions using thePuppeteerSharp.Contrib.Extensions
+PuppeteerSharp.Contrib.Should
libraries
SpecFlow supports async
/ await
.
✔️ You may use the sync versions of the extension methods from PuppeteerSharp.Contrib.Extensions
and PuppeteerSharp.Contrib.Should
if you use Xunit as the unit test provider!
PuppeteerSharpRepoTests.cs
contains tests using thePuppeteerSharp.Contrib.Extensions
+PuppeteerSharp.Contrib.Should
libraries
Xunit supports async
/ await
.
✔️ You may use the sync versions of the extension methods from PuppeteerSharp.Contrib.Extensions
and PuppeteerSharp.Contrib.Should
.