Closed Yermo closed 5 years ago
@zbranzov, @DimitarTodorov any idea here
Hi, @Yermo
I've just inspected the app with Appium Desktop app and it seems that automationText property is not respected when set on <NavigationButton>
or <ActionItem>
elements in <ActionBar>
.
You can use another approach where selecting element by class using android.widget.ImageButton
will return you a single element which will be the desired button for opening SideDrawer.
const btn = await driver.findElementByClassName('android.widget.ImageButton');
await btn.click();
Check out the Appium Desktop app with it you can easily inspect elements and record steps for interacting with elements.
:wave: @Yermo, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please, use Stackoverflow to get help.
Environment
Describe the bug
My app is based off the Side Drawer template.
From a test, I would like to open the Rad Side Drawer and select an item from it to navigate to another page.
I am unable to select the NavigationButton or anything else in the ActionBar for that matter.
To Reproduce
For an Android target:
Add
to NavigationButton in src/app/home/home.component.html
Then in e2e/sample.e2e-spec.ts attempt to get a reference to the button using
run the test using:
Note that it does not find the button:
Expected behavior
It should find the NavigationButton so that it can be clicked on.
Sample project
It's just the side drawer sample.
Additional context Is it not possible to select anything in an ActionBar?