HN user

hesslau_

7 karma
Posts0
Comments5
View on HN
No posts found.
Nightwatch.js 12 years ago

Offtopic:

the line

.waitForElementVisible("button[name=btnG]", 1000)

in the demo test caught my attention - what is a good way to achieve this in production code? i.e. execute a function when a certain element which matches the query becomes visible?

atm i'm using the DOMNodeInserted event (debounced)

$(document).on('DOMNodeInserted', _.debounce(function(e, ui) {}, 100);