Wait for app to complete installing on play store and tap open

Im automation app install from playstore. And I send the tap open option after the app is installed.
However the open element is not recognised as the app is still in the process of installation. Giving a Wait statement still fails