cuprite
cuprite copied to clipboard
any way to track redirects?
in my test i want to verify that when a specific page loads it redirects to another resource.
- when I check
page.driver. status_code
it responds with 200 (meaning the resulting redirect) - same for
page.driber.browser.network.response
- when I check
page.driver.network_traffic
it does contain the redirect info that i need but it's really hard to pinpoint the correct Exchange since there can be other Exchanges both before and after the one I need
am I missing something?
@dreyks since Cuprite is a driver for Capybara and Capybara doesn't provide such functionality I think Cuprite shouldn't implement something like this. You can check this Capybara's maintainer answer about similar issues https://github.com/teamcapybara/capybara/issues/1149#issuecomment-23050206