I am using WebStorm to write some automated tests. For one test, I must check if an alert prompts the user. To accomplish this, I want to use the .getAlertText();
method, however WebStorm does not recognize the method. It says "Unresolved function or method getAlertText()".
The WebdriverIO documentation shows that it is indeed a method: https://webdriver.io/docs/api/webdriver.html
How can I get WebStorm to allow me to use the method? Thank you.