I am currently facing a challenge while attempting to create a test that requires accessing elements within an iframe. Imagine a scenario where you have a room with 20 chairs, each chair treated as a separate entity that needs to be accessed. When I utilize developer tools and the element finder, I can only highlight the iframe structure but cannot gain access to the individual elements within it. As someone new to testing, I find myself stuck in this situation.
When I inspect the html, the element related to the iframe appears as follows:
<iframe name="daasFrame" class="daas-surface" frameborder="0" width="100%" height="100%" ng-src="/Drawing/EventDiagram/e020c975-6f1f-4c6c-bf34-34fa7221c8f3/?venueId=&seatingStyle=theater&language=en&units=Imperial&theme=default&shiftHeader=true"
src="/Drawing/EventDiagram/e020c975-6f1f-4c6c-bf34-34fa7221c8f3/?venueId=&seatingStyle=theater&language=en&units=Imperial&theme=default&shiftHeader=true"></iframe>
I thought of using a switch statement within the test, but I am unsure about the naming conventions for the elements that need to be interacted with.