qxf2-page-object-model
qxf2-page-object-model copied to clipboard
Enchance mobile tests
In this PR i have enhanced mobile testing by adding new gestures to the base page and also an end to end test for weather shopper android application. Added the following methods to Mobile Base page:
- Swipe
- Zoom
- Drag and Drop
- Long Press
- Scroll to Bottom
- Scroll to Top
- Scroll Backward
- Scroll Forward
2. End to end test for weather shopper application
Command: python -m pytest tests/test_mobile_app.py --mobile_os_name Android --mobile_os_version 11 --device_name emulator-5554 --app_name weather_shopper.apk --app_path /d/android_studio/ --app_package com.qxf2.weathershopper
3. Added support for testing in landscape mode
Command: python -m pytest tests/test_mobile_app.py --mobile_os_name Android --mobile_os_version 11 --device_name emulator-5554 --app_name weather_shopper.apk --app_path /d/android_studio/ --app_package com.qxf2.weathershopper --orientation=LANDSCAPE