As I am working in protractor test automation and slowly diving into more & more advanced JavaScript features, I am wondering how can I take advantage of closure feature in Protractor test automation.
What are those typical test automation situations where closures might prove a useful feature to use?
I am asking this question purely from UI test automation perspective, not in general JavaScript programming. I would love to hear from senior folks who are using a protractor on an advanced level in large scale projects and share their experiences.