panther
panther copied to clipboard
[Question] How to disable 'intercept_redirects' in Panther unit test?
Hello,
in a project with 'intercept_redirects' set to true on dev environnement, why can disable intercept_redirects in Panther unit test? When in launch Panther unit test, the environnement is set with 'dev' not 'test'.
When using the WebDriver protocol, redirects are always followed. There are no ways to not follow them.
Thank you for your answer. So when using WebDriver protocol, and launching panther unit test in dev environnement with 'intercept_redirects' set to true, i can't disable interception? So it's compulsory to go through intercept redirect page? A way exist to automatically click on link in intercept redirect page?
Hum no, actually when using WebDriver you cannot intercept at all, redirects will always be followed automatically.
Goto config/packages/dev/web_profiler.yaml and change this line to intercept_redirects: false
