How to setup different lambda-hooks with Java-Cucumber?

What’s the procedure to setup different lambda-hooks with Java-Cucumber?

Hello Charity,

We do have different lambda-hooks that you can use depending on your require. For example, you want to list down the file in download directory. To do that, you can add the hooks below on your script:

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 its functions, please refer here: