I need to create automated negative tests on a React.js app using jasmine and wdio but I cannot clear a field because the value keeps filling back. I have tried other methods and workarounds like
browser.execute("document.getElementById('City').value = ''")
or
locator.setValue(['1', 'Backspace']);
but nothing works. The value gets deleted but appears again.