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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -