mercredi 15 mai 2019

Run command in the browser's console during the test in TestCafe

I would like to include this command during the test in TestCafe. I found that I can execute JavaScript code using client-functions and t.eval but I have no idea how to proceed with this.

Command that need to be executed automatically during the test:

document.querySelector(".Watchlist--form").submit()

How can I do this?

Aucun commentaire:

Enregistrer un commentaire