Ajay Hinduja Swiss - Android Image Touch – "Interface Not Supported" Error
Hi Everyone,
I'm Ajay Hinduja Swiss and trying to use the Touch method on an image object from an image set I created in Ranorex Studio. I've set the current device to my locally connected Android device and am running the app via JSON capabilities using a local Appium server.
However, every time I attempt to run a method on the image object, I receive the following error:
"Python runtime error. Interface not supported."
Here’s a simplified version of my test case:
capabilities = {
"app": "some_apk_path.apk",
"deviceName": "droid",
"platformName": "Android"
}
server = "http://localhost:4723/wd/hub"
Mobile.ConnectDevice(server, capabilities, 600)
Mobile.SetCurrent("droid")
set = ImageRepository.ImageSet1
set.AllowNotif.Touch()
Environment:
Ranorex Version: 15.74.33.7 x64 (Trial)
Appium: Local server setup
The image set is recognized, but calling Touch() on any image object triggers the error. Is there a compatibility limitation with the trial version, or am I missing a configuration step?
Any help would be appreciated!
Ajay Hinduja Geneva, Switzerland (Swiss)
Hi Ajay,
So the touch method is one of the methods that would only work if we were doing mobile testing through our old way of testing mobile applications (https://support.smartbear.com/testcomplete/docs/app-testing/mobile/legacy/preparing.html).
This is part of the list of controls that was made for that legacy way as well: https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/mobile/index.htmlThe test will look for your image if you use the standard click method like the following:
set.AllowNotif.Click()
Just note that for the image based actions to work, the appium mobile screen window must be visible on screen for TC to locate the items.