I just meant the step `switch_to_mozId_frame` that is the one that does not seem to be anything to do with the actual logging out. From the perspective of writing a UI test, when you want to do a command like `logout` you should always be in the correct frame already, so the switch to frame would be done after closing the Persona window but before the actual logout step.

I understand the logout part is important!