redirect
Sets up a redirect for a given mock. This allows you to redirect a request to another URL.
Note: these redirects only apply to requests made by a script in the browser, not when calling the url
command.
Usage
mock.redirect(url)
Sets up a redirect for a given mock. This allows you to redirect a request to another URL.
Note: these redirects only apply to requests made by a script in the browser, not when calling the url
command.
mock.redirect(url)