zopefoundation / zope.testbrowser

Programmable browser for functional black-box tests
Other
21 stars 16 forks source link

Allow option to prevent auto redirection #79

Closed nazrulworld closed 5 years ago

nazrulworld commented 5 years ago

I saw there always following Location URL, https://github.com/zopefoundation/zope.testbrowser/blob/master/src/zope/testbrowser/browser.py#L278

but previously in an older version, I used to browser.mech_browser.set_handle_redirect(False)

Is there any way to do something like this?

mgedmin commented 5 years ago

I'd be happy to review a PR implementing something like this. (Maybe a browser.followRedirects = True/False? Like we currently have a browser.handleErrors switch.)