I am developing Spectron UI tests using Mocha for application that runs on Electron. The main issue that I have is that Javascript does not threat texts inputs by tool equally to real inputs from the keyboard.
As workaround for that I want to apply blur event on particular field after value for it is set. The problem here is that 'element' method of WebdriverIO is returning JSON object and not the DOM element, so .on("blur") cannot be chained to it.
Any suggestions how this can be achieved?
Thanks in advance.