How can I use Selenium RC to check our server redirects (301, 302)?

We have a bunch of redirects in our Apache configuration. I would like to automate redirect testing using Selenium, which led me to some problems:

  • Call url but confirm on redirected page
  • Check browser url after redirect
  • Check the response header to determine the type of redirect (301, 302)

Maybe Selenium is not the best solution for this. Any other suggestions?

+5
source share
2 answers

Selenium-RC , selenium.start("captureNetworkTraffic=true");, HTTP, .

- , / . Python, .

URL- selenium.getLocation();

+8

All Articles