You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
But it looks like there is no way to do this except of constructing condition as string:
// like thisconstcondition=`return !! $(${selector}).attr('disabled')`// or thisconstconditionFunc=()=>{return!!$({{SELECTOR}}).attr('disabled')}constcondition=conditionFunc.toString().replace('{{SELECTOR}}',selector)
Not a big deal in the exampe, but there might be really big condition functions where such constructing can really bother.
Wouldn't it be as simple to add support for arguments as to add the extra argument for the execute call here?
For example, in a condition like this I want to pass the
selector
argument:But it looks like there is no way to do this except of constructing condition as string:
Not a big deal in the exampe, but there might be really big condition functions where such constructing can really bother.
Wouldn't it be as simple to add support for arguments as to add the extra argument for the
execute
call here?nightwatch-commands/commands/waitForCondition.js
Lines 49 to 69 in 4d3984a
The text was updated successfully, but these errors were encountered: