The issue was resolved by using UI Automator