In my case, I have only one function and takescreenshot not working. I automated with webdriver io mobile test with appium, and the end for my test, I wanna attach in my reporter the screenshot of my screen.
My code ->
afterTest: async function (test, context, { error, result, duration, passed, retries }) {
if (passed) {
await browser.takeScreenshot();
}
else {
await browser.takeScreenshot();
}
},
When my test end, not generate my image =/.
My modules
├── @faker-js/[email protected] ├── @types/[email protected] ├── @types/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── @wdio/[email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected]
anybody can help me?