This change is a foundation for interactions with alerts in Selenium.

Added alerts support.