When executing test case with android, I can use Mobile.swipe(startX, startY, endX, endY) to surf between elements.
e.g Mobile.swipe(81, 1159, 81, 1717)
however, on screens of different sizes, these coordinates will also be different. So how can I apply Mobile.swipe(startX, startY, endX, endY) to multiple screen sizes without manually changing coordinates in my test case?
element: 2021: in screen A has coordinates (81, 1159, 81, 1717)
element: 2021: in screen B has coordinates (162, 532, 162, 1403)