I'm using Page Object in Nightwatch.js. I want to simulate login behavior, so the commands in page object module is:
commands: [{
setValueToHere(selector,value) {
return this
.setValue(selector,value)
},
clickTheButton() {
return this
.click('@submitButton');
}
}]
when I call it in my test the test runs "weird": the pop-up browser runs fine, it behave exact like how users do on the web page. However, the result in the terminal keeps running these lines.
Error while running .locateMultipleElements() protocol action: invalid selector: An invalid or illegal selector was specified
Error while running .locateMultipleElements() protocol action: invalid selector: An invalid or illegal selector was specified
...
This does not happen often, sometimes with runs smoothly but sometimes the error keeps running. Is it because of my internet connection? Has anyone meet this situation?