wd
wd copied to clipboard
setText() requires callback while sendKeys() does not?
From what I can tell, sendKeys() and setText() are essentially the same functions, except sendKeys() just types text, while setText() replaces it. Both require a callback as the second parameter. However, it looks like sendKeys() works just fine with one parameter, while setText() doesn't, and returns:
Error: [element.setText("my_text")] Unexpected data in simpleCallback.
Am I missing something? I can't see anything in WD.js's code that would cause this, but maybe I just don't understand it well enough. Or it could be in one of the component libraries. In any case, any help is appreciated.