A bespoke CMS I worked on included a Web Form containing iframes of which one contained an Angular app. I wanted to access this Angular app using Watir-WebDriver and perform actions on its elements.
style="border: none; height:1069px; width: 100%;"
Whilst the method for accessing iframes with Watir-WebDriver used to be
frames, I couldn't access the desired iframe with
@b.frame(:id => "form-iframe") and
@b.frames was empty.
@b.iframes. For example,
@i = @b.iframes(:id => "form-iframe") allowed me to work with the desired iframe as a new instance variable