In XCUITest, I am struggling to interact with webview elements. The app I am trying to automate mainly consists of native screens, which work fine, but some flows are in webviews, which obviously have no AccessibilityIDs like the native elements.
This must be a fairly commonplace occurrence needed in app automation.
I tried one suggestion of using an tag on the web element, but this also did not work.
I am simply trying to interact with the webform as user would, I can somewhat use some elements by referencing StaticText but this is a bad approach.