I’m using Capacitor to build a hybrid mobile app with Angular. I have a custom component called c-button
that I’d like to be treated as a full Android widget.
My c-button
component is built with Angular and uses a <button>
element internally.
I’m facing challenges with testing using Appium on Browserstack. Appium recommends using unique accessibility IDs for reliable testing, but I’m struggling to implement this effectively with Selenium.
Using XPath
@FindBy(xpath="//*[@id='myButton']")
private WebElement myButton;
Note: it works well with the native html button