title: Selenium: How to handle a modal dialog that is shown based on number of redirections
body: <p>I am using Selenium Webdriver using C# (Page Factory model). </p>
  
  <p>My application under test gives a feedback dialog after the 3rd redirection on the site, no matter what page user is on. </p>
  
  <p>What would be the best way to handle this feedback dialog? I need to simply close the dialog.</p>
  
  <p>Should I check for this in constructor of each page ?
  or 
  should I keep a count of redirections using some global variable at test case level and check, in this case how should I keep a track of redirections?</p>
  
  <p>or any other better solution?</p>