Issue is not able to click on center of the screen. https://github.com/appium/appium/issues/9046

Hi Friends,

I have posted my query on github. Following is the link:-

Issue is not able to click on center of the screen. Using following code:-
AppDriver.Tap(1,200, 200, 2);

In case I am executing with Size like below getting exception.
AppDriver.Manage().Window.Size = new Size();
AppDriver.Tap(1,200, 200, 2);

FYI - there are no ids or unique locators no unique xpath. The ask is I have to click on any image which is dynamic everytime. So if I click on center of android or iOS it an be achieved.

Kindly help me with the same. Thanks.

finally i am able to click it. using following code:-
Size size = AppDriver.Manage().Window.Size;
int startx = (int)(size.Width * 0.5);
//int startx = (int)(size.Width * 1);
int starty = size.Height / 2;
//int endy = size.Height / 7;
AppDriver.Tap(1, startx, starty, 5);