How to interact with the webactivity which launched from another activity ?
My test case is Launching my login activity, filling the user credentials on edit texts and performing click() action.
onView(withId(R.id.editTextUserId)).perform(typeText("username"), closeSoftKeyboard());
onView(withId(R.id.editTextPassword)).perform(typeText("password"), closeSoftKeyboard());
onView(withId(R.id.loginButton)).perform(click());
the login button from main project is launching the webactivity there i have to fill another data in the text filed displaying on the webpage.
I have tried with onWebView().withElement(findElement(Locator.ID, "input"));
but getting null reference error.
i am not sure about the following,
- how to wait for the webactivity to launch? as i am adding webview at runtime without id.
- how to execute the remaining test cases from web activity after it started.could anyone help me?
Thanks, J