Add automation tests for UI dialogs

Issue #504

Reviewed By: Hasan Ahmad <haahmad@rim.com>
Tested By: Hasan Ahmad <haahmad@rim.com>