How to test mobile application with Selenide and Appium
-
Run the emulator:
open Android Studio -> "Android Virtual Device Manager" -> Run
-
Run appium server:
appium
-
And finally, run the test:
./gradlew test
Thanks to Maryna Kolesnik for CalculatorTest example! Her original sample can be found here
NB! This project uses a simple approach for tests: it just calls Selenide standard $
method to find elements in mobile app.
I like it. It's just good enough.
But if you want to use Android- and IOS- specific annotations like @AndroidFindBy
, consider using library selenide-appium. It has Selenide+Appium specific page factory for supporting those annotations.