spec for handling element lookup inside a frame