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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -