I have created extensive automated regression tests using Selenium, so it is definitely possible. In the past, I ran into two common issues:
Hi, Krishnaraj!
We're testing native apps with the help of the Detox library.
You can find detailed instructions on how to set up Detox here. If you build your native app from the Native Template project, it already includes the Detox dependency for an Android project. This means you can skip steps 2, 3 and 4 in the Detox for Android guide.
All built-in widgets (button, text box, .etc) can be selected using the by.id selector. Please note, testID for a widget equals the widget name.
If you wanted to write a test for typing a value inside an input and then clicking a button it would look something like this:
await element(by.id('textBox1')).typeText("Some text");
await element(by.id('button1')).tap();
Where textBox1 and button1 would be names of your widgets.
Hi Krishnaraj
Have a look at out app store native widgets for test compatibility
https://github.com/mendix/widgets-resources/tree/master/detox
Cheers, Andries