I am using startScreenRecording() and stopScreenRecording() methods to record screen during test executions. My tests run on browserstack. For a single test the screen recording is fine. But when I execute multiple tests, the test execution fails with an exception ,
org.openqa.selenium.WebDriverException: Appium error: An unknown server-side error occurred while processing the command. Original error: Unable to stop the background screen recording: Condition unmet after 10207 ms. Timing out. (WARNING: The server did not provide any stacktrace information)
I have placed the methods startScreenRecording() and stopScreenRecording() on the beforeMethod() and afterMethod() annotations.
Could someone help me where I am going wrong here? Or is it an issue?