Touch action does not playback successfully on android device some times , hence object not found
I have faced this many times with different types of object on 3 types of android devices. (Getac, Nexus 7 and Samsung Galaxy Note, currently using Samsung Galaxy note)
I am using TestComplete mobile version 11.20.1491.7
Touch action event log says touch action was successful, hence it proceeds for next script execution, but on device the
touch action is not simulated correctly, hence getting object not found error.
If I execute same script as standalone routine, it works perfectly fine, or if rerun the project suit it may work fine again, but other times it gives error.
This is actually false alarm in our contineous regression testing.
I have tried different things .. like adding delays between the actions, using Click command, using LongTouch command etc.
But still facing the issues.
Has anybody else faced this issue?
Any advice on how to solve it?
Thanks anhvu and Alex.
My problem got resolved(hopefully as it was intermittent) after adding few more Delays between the actions.
So basically issue is not related to press button but the latency between the action response and actual playback on the screen.
I will try out Mobile.Device.PressButton(MobileButtonKey.mbkBack) as well when face similar issue again.