79314710

Date: 2024-12-28 23:19:08
Score: 3.5
Natty:
Report link

I have the same error calling driver.takeScreenshot() or driver.saveScreenshot(...) with WebDriverIO + Appium.

The solution was to switch context to NATIVE_APP then takeScreenshot and finally switch context back to FLUTTER.

await driver.switchContext("NATIVE_APP");
await driver.takeScreenshot();//or saveScreenshot(screenshotPath)
await driver.switchContext("FLUTTER");

I know that is not directly answering your question but I hope it might help you in some way!

Reasons:
  • RegEx Blacklisted phrase (1): I have the same error
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same error
  • Low reputation (0.5):
Posted by: ZoRdAK