How do you set cookies on TestCafe?
The most common way to set cookies on TestCafe is via the cookie function. This function returns the current browser cookies for a given domain and path. If you would like to set a cookie, use the cookie function with a domain and path that you want to set a cookie for.