Waits for the specified value to be in value attribute.

```js
I.waitForValue('//input', "GoodValue");
```

@param {LocatorOrString} field input field.
@param {string }value expected value.
@param {number} [sec=1] (optional, `1` by default) time in seconds to wait
[!] returns a _promise_ which is synchronized internally by recorder