TestProject Forum
Powered by leading experts in the test automation community

UIAlertViewController

Is there any way to get this component? in the element explorer, I can’t find it.

Hello, these seem like native iOS elements, Appium does not support interaction with those.
To be sure of that, can you please start the recorder and then open a new tab and navigate to this endpoint:
http://localhost:8100/source
It will return the parsed DOM from Appium.
If the element is not there, then even Appium cannot detect it

I can see it in the DOM
<XCUIElementTypeButton type=“XCUIElementTypeButton” name=“Publish post” label=“Publish post” enabled=“true” visible=“true” x=“10” y=“418” width=“394” height=“75”/>\n </XCUIElementTypeOther>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“492” width=“394” height=“2”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“492” width=“394” height=“2”/>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“492” width=“394” height=“2”/>\n </XCUIElementTypeOther>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“493” width=“394” height=“74”>\n <XCUIElementTypeButton type=“XCUIElementTypeButton” name=“Don’t ask me again” label=“Don’t ask me again” enabled=“true” visible=“true” x=“10” y=“493” width=“394” height=“74”/>\n </XCUIElementTypeOther>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“566” width=“394” height=“2”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“566” width=“394” height=“2”/>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“566” width=“394” height=“2”/>\n </XCUIElementTypeOther>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“567” width=“394” height=“74”>\n <XCUIElementTypeButton type=“XCUIElementTypeButton” name=“Edit who can see this post” label=“Edit who can see this post” enabled=“true” visible=“true” x=“10” y=“567” width=“394” height=“74”/>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”/>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”/>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”/>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”>\n <XCUIElementTypeOther type=“XCUIElementTypeOther” enabled=“true” visible=“false” x=“10” y=“651” width=“394” height=“75”/>\n </XCUIElementTypeOther>\n <XCUIElementTypeButton type=“XCUIElementTypeButton” name=“Cancel” label=“Cancel” enabled=“true” visible=“true” x=“10” y=“651” width=“394” height=“75”/>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n </XCUIElementTypeSheet>\n </XCUIElementTypeOther>\n </XCUIElementTypeOther>\n</XCUIElementTypeApplication>\n",
“sessionId” : “AD4AE3F4-FD61-4C02-BBFE-C4161FB6A9D9”

Is there anyway to create this element?

This issue has been fixed in the version 0.61.12
Thanks for your help