I am probably looking at one of the most frequently asked question when automating a website -
How do I wait for the HTML to be ready?
This question is complicated even more by Frames.
I see the Frame Navigation Complete event which exposes only CoreWebView2NavigationCompletedEventArgs which really does not give you much help. Once this event is fired is the developer left with only JavaScript injection into the Top Document to find out the status of a frame and especially the DOM? From the CoreWebView2 events how can you identify which Frame to then check with Javascript? Does the API currently expose for example the Name and/or ID of this frame?
I believe that a Frame has the same properties and events as a browser so is it possible to get a frame as a CoreWebView2 object.