Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to resolve xpath on real devices #18

Closed
SamuelZhaoY opened this issue Oct 4, 2017 · 3 comments
Closed

failed to resolve xpath on real devices #18

SamuelZhaoY opened this issue Oct 4, 2017 · 3 comments

Comments

@SamuelZhaoY
Copy link
Member

At login page of macaca sample android app, the uiautomator fails to resolve xpaths retrieved from App-Inspector. e.g.

//android.widget.FrameLayout[2]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.LinearLayout[2]/android.widget.Button[1]

After attaching debug point for uiautomator, the following exception is trapped:
image

@SamuelZhaoY
Copy link
Member Author

Seems the previous issue has been fixed. However as I upgrade the macaca-android and app-inspector to the recent version, it is found that for low API version simulators, everytime execute 'source' from app-inspector, the UIAutomator restarts..

2017-10-12 9 24 38

and the source returns "0"

2017-10-12 9 25 20

@SamuelZhaoY
Copy link
Member Author

@qichuan @xudafeng

@qichuan
Copy link
Contributor

qichuan commented Oct 13, 2017

Duplicate issue of alibaba/macaca#714, and it is already fixed in macacajs/app-inspector#148

@qichuan qichuan closed this as completed Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants