I am building a testing project using Webdriver IO in the Mocha Chai Framework using the WebStorm IDE. Certain methods, including .getUrl()
, .alertText()
, and .keys()
display as perfectly viable methods when written in the WebStorm IDE.
The IDE shows no errors, warnings, or anything showing that they are not recognized by WebStorm. In fact, when typing out the methods, they show up as recommended methods.
However, when I run the tests using npm run test
in the command prompt, these portions of code do not get executed, and the console displays error messages stating "this.keys is not a function", "this.getUrl is not a function", and "this.alertText is not a function".
What could be the problem? If there is any more information needed, I'd be happy to comply. Thanks.