{"repo":"martincostello/dotnet-playwright-tests","free":true,"listed":false,"github":"https://github.com/martincostello/dotnet-playwright-tests","clone":"git clone https://github.com/martincostello/dotnet-playwright-tests.git","description":".NET tests using Playwright","language":"C#","stars":29,"topics":["dotnet","dotnet-core","playwright"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":".NET Playwright Tests A simple test implemented in .NET that uses [Playwright] for tests with multiple browsers, including support for [BrowserStack Automate]. Introduction This repository demonstrates the use of Playwright to write automated browser tests using .NET and [xunit]. The [ SearchTests ] class contains a single xunit test, which use the types provided by the [Microsoft.Playwright] NuGet package to open an browser and then search for the text \" .net core \", wait for the search results to load, and then click on the first link with the text \" .NET \" in it. The test is [data driven] and can run against multiple browsers, which are determined by the [ BrowsersTestData ] class based on the operating system being used to run the test. Creating an [ IPage ] instance for a specific browser to use in specific tests is delegated to the [ BrowserFixture ] class. BrowserFixture contains the implementation for configuring an [ IBrowser ] for the specified browser type and channel, such as Google Chrome or Mozilla Firefox, as well as configuring any timeouts. Tests are run headless by default, unless a debugger is attached. The fixture also handles cross-cutting concerns, such as recording video, taking screenshots on test failure, and logging console and page errors. The behaviour of BrowserFixture can be customised further using the [ BrowserFixtureOptions ] class. Integrating with BrowserStack Automate The BrowserFixture class also supports using [BrowserStack Automate] to r","default_branch":null,"files":null,"tree":[],"storefront":"/r/martincostello","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/martincostello/dotnet-playwright-tests/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}