How to setup different lambda-hooks in JS-Nightwatch?

How can I setup different lambda-hooks in JS-Nightwatch?

Hello Macy,

You can add the hooks below on your script to setup different lambda-hooks in JS-Nightwatch:

lambda-file-list - print driver.execute_script("lambda-file-list={match string with filename}");
ie:print driver.execute_script("lambda-file-list=sample");Response: List of files in downloads dir starting with sample

To know more Lambda hooks and it’s functions, please refer here: