Allow objects that look like elements in switchToFrame