wait until expectedcondition frame to be avaibale and switch to it