Change this to just self.marionette.switch_to_frame(self.apps.displayed_app.frame)