Using Reqnroll with Playwright: any drawbacks or limitations? #209
-
Hello, We are considering the usage of Reqnroll with Playwright. We've seen the sample of ZsoltDunai and we have no problem to run it. Additional question: in the sample of ZsoltDunai, we see that they create a new Browser instance for each Scenario while, in a discussion in the Specflow repo, Timm Krauss creates one instance of the browser for each test run and then a new page for each Scenario (I think for the sake of parallel execution). Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It makes sense to specify what do we mean on "Playwright" here, because it is actually two things:
The Playwright test runner can only be used with node.js and JavaScript/TypeScript, so if you choose to use the Playwright .NET library, you automatically loose those benefits. Once you have decided to use the Playwright .NET library, driving that with Reqnroll does not cause any drawbacks that you would need to accept. As far as I know all functionalities of the library can be used from Reqnroll as well. The browser object pooling (how/when do you reuse the browser) is definitely something you should consider and find a solution for. For that, many here suggested to use some sort of pooling using the In the ReqOverflow sample I was using another pooling approach that uses the built-in infrastructure of Reqnroll. This is also something you can consider, but with the |
Beta Was this translation helpful? Give feedback.
It makes sense to specify what do we mean on "Playwright" here, because it is actually two things:
The Playwright test runner can only be used with node.js and JavaScript/TypeScript, so if you choose to use the Playwright .NET library, you automatically loose those benefits.
Once you have decided to use the Playwright .NET library, driving that with Reqnroll does not cause any drawbacks that you would need to accept. As far as I know all functionalities of the library can be used from Reqnroll as well.
The browser object…