I have decorated one of my methods in my MainActivity using the ExportAttribute and I was wondering how I might be able to call this method in my Appium UIAutomator2 test?
I have found there might be a way using mobile:backdoor however this doesn’t seem to be available in the UIAutomator2 driver.
I would be very grateful for any pointers you may be able to provide.
This is only available in Espresso driver. UIA2 is a completely black box framework, which does not have any access to app internals and only works with the accessibility.