how about switch_to_frame() to system level and wait for the frame to switch to?