Appium quit/close functions are not reliable methods of closing tabs. Frequent tests can lead to several tabs being open at once putting potential strain on the devices under test. Possible solutions:
- Using adb (android) to clear all data related to chrome.
- This approach requires using adb commands sent directly to the hardware/simulator
- Chrome will be in "first use" mode including welcome message, which can be disabled
- Using the Appium native view to select "close all tabs".
- Unclear if this would function the same on all devices. Relies on using Native locators.
- Possibly more time consuming, reliability is unknown
- Leave it unchanged, rely on users to perform clean up themselves.
- Apple devices have a "timeout" option to automatically close tabs after minimum 24 hours.
Appium quit/close functions are not reliable methods of closing tabs. Frequent tests can lead to several tabs being open at once putting potential strain on the devices under test. Possible solutions: