cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

any way to track redirects?

Open dreyks opened this issue 4 years ago • 1 comments

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 avatar May 28 '20 11:05 dreyks

@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

nashby avatar Sep 18 '20 09:09 nashby