added expected condition frameToBeAvailableAndSwitchToIt