Currently, I am working on creating automated tests in WebStorm. One of the tasks involves checking if an alert appears to prompt the user. To achieve this, I planned to utilize the .getAlertText();
method. However, I encountered an issue as WebStorm does not seem to recognize this method. It displays a message saying "Unresolved function or method getAlertText()".
Upon referring to the WebdriverIO documentation, I confirmed that the method does exist:
I am stuck at this point and seeking guidance on how to enable WebStorm to recognize and allow me to use the getAlertText()
method smoothly. Thank you for your assistance.