Open christian-bromann opened 5 years ago
From @erwinheitzman on October 30, 2018 17:42
This is not an issue but a question, please use our gitter channel for this.
To answer the question though, you use it like this:
webdriverio
.remote(options)
.init()
.url('some-page')
.element('#some-input')
.setValue('some value')
.getValue('#some-input').then(value => {
console.log('Value was: ', value); // logs "Value was: some value"
})
.end()
.catch(function(err) {
console.log(err);
});
This can be related to the repl interprets the return value. Let's reopen.
@jiangyd note that we are working hard on the new WebdriverIO version so we can't look into fixing a bug of a version that will be deprecated soon. We are happy to accept pull requests that fix the issue.
From @jiangyd on October 29, 2018 7:25
Copied from original issue: webdriverio/webdriverio#3027