How to click on coordinates on screen of simulator or device?

Hi!
I need to find a way to click on specific coordinates. Not getting them from element - because there is no element, just need to click X, Y coordinates.
Using: iOS, Python
Thank you !

I dont use python, but have you checked:

TouchAction already supports supplying None for the element (and other arguments).

E.g.: action.press(el=None, x=None, y=None)

2 Likes

Thanks a lot, your link helped me
I was using such code:
self.driver.tap(128.90625, 335.90625) without success

but the right one example:
self.driver.tap([(128.90625, 335.90625 )])

so you have to use array of coordinates, even if there is just one coordinate.
Thanks! Now its working!

1 Like