test: Basic support for testing inside iframes

Closes #1338
Reviewed-by: Stef Walter <stefw@redhat.com>