Troubleshooting Exceptions: System.Windows.Automation.ElementNotAvailableException
An ElementNotAvailableException exception contains information about the exception that is raised when an attempt is made to access a UI AutomationElement corresponding to a part of the user interface that is no longer available.