I have found out that the appium driver version was 1.4, so the plug-in didnt’ work while the test code works.
Thank you for your advice!