How can I login to google account at the time of test session creation?
Hey Richard. hall,
You just need to add the following HashMap structure to store the credentials:
HashMap<String, String> googleCredentials = new HashMap<>();
googleCredentials.put("email", "EMAIL_ID@gmail.com"); //Add in your Google account ID
googleCredentials.put("password", "GOOGLE_PASSWORD"); //Add in your Google account Password
Once we have added this HashMap, we can now add the capability linking this HashMap to the capability.
capabilities.setCapability("playStoreLogin", googleCredentials);