In your tests, you might have nested DIVs within the main content, which you wish to visually validate.
For example:
As you can see in the example above, the "SQL" element is nested inside an iframe.
In order to solve this issue, Applitools Eyes helps you identify and test regions within nested frames quickly and painlessly – by automatically changing the webdriver context to the target frame, scrolling and stitching to capture the entire contents of the region and reverting to the original context – all with a single CheckRegion command.
After finding the requested nested element and it's selector, we simply insert it to the By selector. In the above example, the code should look like this:
eyes.checkRegionInFrame(FrameNameOrId, By.className("SQLelement"), "MyRegion");