java - How to catch HTTP 302 response via Selenium Webdriver? -


i want automate following scenario:

  1. click on image

  2. before destination page, server redirects me url (e.g abc.com).
    http response--> 302 found

  3. there redirection url (e.g def.com).
    http response--> 302 found
  4. destination url reached (e.g xyz.com)
    http response--> 301 moved permanently

i interested in step2. need verify (abc.com) received 302 response before xyz.com reached. there way in selenium webdriver? if not, how can implement in java?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -