panther icon indicating copy to clipboard operation
panther copied to clipboard

[Question] How to disable 'intercept_redirects' in Panther unit test?

Open itkg-amagnier opened this issue 6 years ago • 4 comments

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'.

itkg-amagnier avatar May 09 '19 12:05 itkg-amagnier

When using the WebDriver protocol, redirects are always followed. There are no ways to not follow them.

dunglas avatar May 09 '19 12:05 dunglas

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?

itkg-amagnier avatar May 09 '19 14:05 itkg-amagnier

Hum no, actually when using WebDriver you cannot intercept at all, redirects will always be followed automatically.

dunglas avatar May 09 '19 14:05 dunglas

Goto config/packages/dev/web_profiler.yaml and change this line to intercept_redirects: false image

vrushalrt avatar Jun 12 '21 18:06 vrushalrt