def tap_call(self): self.marionette.find_element(*self._call_button_locator).tap() self.wait_for_element_not_displayed(*self._call_button_locator) from gaiatest.apps.phone.regions.keypad import Keypad keypad = Keypad(self.marionette) keypad.switch_to_keypad_frame() return keypad