SpecFlowOSS / SpecFlow.Actions

BSD 3-Clause "New" or "Revised" License
57 stars 53 forks source link

Using full list of Playwright supported browsers #96

Closed AptecoJoe closed 1 year ago

AptecoJoe commented 2 years ago

Is it possible to use specflow with the full list of playwright browsers (desktop and mobile). I have been able with playwright out the box but recently switched to using specflow but couldn't find how?

If not, is it planned to be supported?

SabotageAndi commented 2 years ago

Ah, we didn't notice that there is now Safari and Opera support in Playwright.

Adding a new browser isn't hard. The main stuff is here: https://github.com/SpecFlowOSS/SpecFlow.Actions/blob/main/Plugins/SpecFlow.Actions.Playwright/SpecFlow.Actions.Playwright/DriverInitialiser.cs

I am happy to review PRs that add the missing browsers.

kapros commented 1 year ago

best I could find was Desktop Safari for Webkit, but not Opera. @AptecoJoe would you mind providing an example of how you were able to launch Opera with Playwright?

kapros commented 1 year ago

On top that, using Safari from the above link is, I believe, going to require passing in a BrowserNewContextOptions object to the IBrowserContext (which comes from IBrowser) when creating a new context, which is not very compatible with the current design.