You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to inject the remote browser into playwright-nunit framework. While doing so we noticed that the Browser never gets closed using Browser.close() which results in "Abrupt Close" at the remote cloud's end. We have rewritten the BrowserService.cs by extending the IWorkerService and used the browserType.ConnectAsync method with BrowserStack's CDP URL to connect to the remote cloud.
Apart from this we also noticed that the browser gets closed only in cases of errors/assertion errors.
Code Snippet
Below is the code snippet for the rewritten BrowserService.cs
Context:
Hi Team,
We are trying to inject the remote browser into playwright-nunit framework. While doing so we noticed that the Browser never gets closed using
Browser.close()
which results in "Abrupt Close" at the remote cloud's end. We have rewritten the BrowserService.cs by extending theIWorkerService
and used thebrowserType.ConnectAsync
method with BrowserStack's CDP URL to connect to the remote cloud.Apart from this we also noticed that the browser gets closed only in cases of errors/assertion errors.
Code Snippet
Below is the code snippet for the rewritten BrowserService.cs
Please let me know your thoughts on this.
The text was updated successfully, but these errors were encountered: