title: Handling two different pages with the same URL
body: <p>I'm working on a program that automatically logs into a site using Selenium. In some situations, if the site doesn't remember the browser, it will ask you to answer a secret question before it takes you to the password page. Originally I thought I would just handle this with an <code>If</code> statement that checks the current URL against the specific URL that I knew was produced when I was directed to the secret question page. The issue I'm running into, is that the URL for the secret question page, and the URL for the password page are the same. Is there a way to differentiate these two pages by the URL in this situation, or will I need to find an alternative method?</p>