I have two textboxes in a page and both the textboxs are initially blank. When I enter value to a textbox then the other one automatically populates one value .So I want to wait until the auto generated textbox field contains a non blank value and I want to use wait until feature from night watch 2.0.
The second function in the wait until method is kept as a parameter to execute method and I am not able to push any other nightwatch method like getText or getValue instead of execute method as nightwatch says this.getValue is not a function.
Please help in this regard.
Include a sample test which reproduces the problem you're experiencing. If possible, the test should be against a public url.
Please add the test and other info inline, not as attachments or screenshots.
Describe the bug
I have two textboxes in a page and both the textboxs are initially blank. When I enter value to a textbox then the other one automatically populates one value .So I want to wait until the auto generated textbox field contains a non blank value and I want to use wait until feature from night watch 2.0.
The second function in the wait until method is kept as a parameter to execute method and I am not able to push any other nightwatch method like getText or getValue instead of execute method as nightwatch says this.getValue is not a function. Please help in this regard.
Include a sample test which reproduces the problem you're experiencing. If possible, the test should be against a public url.
Please add the test and other info inline, not as attachments or screenshots.
sampleTest.js
```js module.exports = { sampleTest: function(browser) { browser .url('https://nightwatchjs.org) .waitUntil(async function() { const title = await this.getValue(element, function(result) { return result.value; }); return title === 'Nightwatch.js'; }, 1000); } } ```Run with command
Verbose output
debug.log
```txt ```
Configuration
nightwatch.json
```js { "your": { "config": "here" } } ```
Your Environment
nightwatch --version
npm --version
yarn --version
node --version