Add focus to switchToApp and switchToFrame