Device loop does not return correct value for Aliases.Device.Name
I have a very simple device loop. And i have 2 devices connected to my laptop. One is an android device SM-G960W and another is an iphone.
The issue i am noticing is that, when i put a debug point on the Log message here and check the value of the following, they return different values. Since 2 devices are connected, the above test will run for 2 iterations.
Iteration 1:
Iteration 2:
While Mobile.Device().Name is returning the correct value, Aliases.Device.Name is always returns the 1st device that i connected to my machine out of the 2 devices connected. In the case above, Android device is connected first and Aliases.Device.Name is returning the android device for both the iterations.
Any idea how to fix this issue?
Thanks,
Sridhar.
I figured it out. It is the issue with the way i did my name mapping. All good now. Thanks a lot.