Not able to tap over element on ios simulator getting Original error: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil issue

Call to ‘tap’ failed

An unknown server-side error occurred while processing the command. Original error: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
Xml view:

Tried with: //XCUIElementTypeStaticText[@value=“okBTN”], //XCUIElementTypeButton[@value=“okBTN”]![15%20PM|536x500]
(upload://ctbq6jR6vJCvxmxRbavTD7PWIY.png)

Kindly help

I am seeing the same issue and it occurs for me when I am trying to tap a native alert allow button. Hopefully this bumps up your questions and we can get a resolution.