nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

[Enhancement] Click to contain and print custom message

Open Pieras2 opened this issue 3 years ago • 1 comments

I wish I could add a custom message that will print log that click has been done. Sometimes when we analyze logs to see if the failure was due to tester's fault or the application one it's difficult to find the root cause. If I had a "custom message" the way I do it when I call waitForElementVisible which instead of default log for this command prints my message.

Example:

  • browser.click(selector, custom message, callback)
  • browser.click("...someSelector", "Clicked Upload button")

Pieras2 avatar Oct 26 '21 07:10 Pieras2

Ok, this can be useful. We'll look into it for v2.

beatfactor avatar Oct 26 '21 08:10 beatfactor