Hi everybody,
I don't understand why this error message 'ERROR running Appium command: Cannot read property 'shell' of null' is raised during this method call:
File scrFile2 = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
Context: 'getScreenshotAs' method is called just after a closeApp() method.
If i do
((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
before the 'closeApp()' method call, no error is raised. The test works fine.
My current code:
....
File scrFile1= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
driver.closeApp();
File scrFile2 = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
....
Thanks you in advance for your help