I'm new to Robotium and Android testing, lately I tested iOS apps. Now I am testing Android application, and on the first Activity I enter email and password, so when it is done, I press the Enter button on the keyboard and the next activity should appear. How can I implement it in my test? I have this in the beginnihg of test:
EditText etEnterEmail = (EditText) solo.getView(R.id.EditText01);
solo.clearEditText(etEnterEmail);
solo.enterText(etEnterEmail, "anna@gmail.com");
EditText etEnterPassword = (EditText) solo.getView(R.id.editText2);
solo.clearEditText(etEnterPassword);
solo.enterText(etEnterPassword, "qwerty123");
How can I press the button Enter? When the test is running the keyboard doesn't even appear, strings are just appearing in EditTexts. Plase help me! I'm desperate!