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

[UiAutomator] Fail to locate UI component by resource-id #12

Closed
dino-su opened this issue Mar 24, 2015 · 1 comment
Closed

[UiAutomator] Fail to locate UI component by resource-id #12

dino-su opened this issue Mar 24, 2015 · 1 comment

Comments

@dino-su
Copy link

dino-su commented Mar 24, 2015

Hi,

Given the screen shot below, can you illustrate why it cannot be found by selector below ?

BySelector searchButtonSelector = By.res("com.kddi.android.videopass", "com.kddi.android.videopass:id/search");

screenshot 2015-03-24 16 50 57
I also tried below but none of them are working

BySelector searchButtonSelector = By.res("com.kddi.android.videopass", "id/search");
BySelector searchButtonSelector = By.res("com.kddi.android.videopass", "search");
BySelector searchButtonSelector = By.res("com.kddi.android.videopass:id/search");
@dino-su dino-su changed the title Fail to locate UI component by resource-id [UiAutomator] Fail to locate UI component by resource-id Mar 24, 2015
@dino-su
Copy link
Author

dino-su commented Mar 24, 2015

it's my mistake, the code below fix my problem.

BySelector searchButtonSelector = By.res("com.kddi.android.videopass", "search");

@dino-su dino-su closed this as completed Mar 24, 2015
hannesa2 pushed a commit to hannesa2/testing-samples that referenced this issue Nov 13, 2022
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

1 participant