I am seeking assistance on implementing FluentWait using nightwatch.js. How can I achieve this?
Within my project, I have a global.js file that includes:
waitForConditionPollInterval : 300,
waitForConditionTimeout : 5000,
However, it seems like this is not utilizing FluentWait. How can I implement FluentWait instead?
My second question pertains to using variables from global.js in test scripts. For instance, if I have code similar to the following:
this.typeLoginAndSubmit = function() {
browser
.waitForElementVisible(loginPageSelectors.loginField, 5000)
.setValue(loginPageSelectors.loginField, 'login')
.waitForElementVisible(loginPageSelectors.loginSubmit, 5000)
.click(loginPageSelectors.loginSubmit)
return browser;
The nightwatch methods such as "waitForElementVisible" require me to provide milliseconds value. How and when can I leverage the configuration from global.js?