TestProject Forum
Powered by leading experts in the test automation community

Check if element is clickable with nightwatchjs

How is it done with nightwatch? selenium server can’t click on element because it is not ‘clickable’.

browser.waitUntilElementIsClickable('.cls');

Or, you could use page elements:

var homePage = browser.page.HomePage();
homePage.waitUntilElementIsClickable('@element');