vendredi 24 juin 2016

Robotium EditText no working

In Robotium i am testing all the widgets,Edittext is not working.It is showing Edittext not found.Here is the code

public void testLogin(){
        solo.unlockScreen();
        solo.enterText(0, "123");

        View image1 = solo.getView("btnlogin"); 
        solo.clickOnView(image1);

        solo.assertCurrentActivity("Expected tabsactivity", "tabs");

        solo.clickOnText("Tb");

        solo.clickInList(0);

        solo.assertCurrentActivity("Expected abcactivity", "abc");

        solo.enterText((EditText) solo.getView(R.id.etDetails),"13");







    }

Aucun commentaire:

Enregistrer un commentaire