0

I have an Android mobile app. which provides facility to login in this app using Facebook but while automating this page, I'm not able to tap continue button which comes after entering username and password.

image of fb log in

I'm using below xpath to find the continue button.

@AndroidFindBy(xpath= "//android.widget.Button[@content-desc=\"Continue\"]")

Can someone help me. how do find it appropriately ?

closed as off-topic by c32hedge, alecxe Nov 10 '17 at 23:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers." – c32hedge, alecxe
If this question can be reworded to fit the rules in the help center, please edit the question.

1

Most likely this is calling an activity within the Facebook application. Your driver, therefore, doesn't know how to interact with it. In order to tell it how to, you need to find the package/ID of the activity that is called and set it as an "appWaitActivity" capability.

I have to do similar within my app to call an MS login activity. The Java code looks like the following:

capabilities.setCapability("appWaitActivity", "com.microsoft.aad.adal.AuthenticationActivity");

Not the answer you're looking for? Browse other questions tagged or ask your own question.