That 3 stripes menu (hamburger menu) is the navigation button. Should use clickById() for more reliability. click(x,y) is the last resort.
The next "My apps & games" can't be help, since it is a list, should use click(pattern).
Finally, if there are updates, the "Update all" button will be there, use its Id.
Summed up, this is the core script.
Code: Select all
sleep(1000)
clickById("com.android.vending:id/navigation_button");
sleep(500);
click("My apps & games");
sleep(1000);
clickById("com.android.vending:id/header_action_button");
I add sleep(1000) to ensure the script get enough time for the first launch, since playstore open quite slow in some devices.
You can add more check, using the existsById() to make sure the button is there (means there are updates). Or you can add additional notification trigger to check what apps got updated and log them sequentially to a list and report it after finish.