from sikuli.Sikuli import * import sys, difflib, os import seemonkey addImagePath(os.path.dirname(__file__)) device = seemonkey.getDevice() def the_PIN_tab_should_be_selected_by_default(): device.exists("PIN-tab-sel-mdpi.png") def the_password_tab_should_be_selected_by_default(): the_password_login_form_should_be_displayed() def the_password_login_form_should_be_displayed(): device.exists("password-tab-selected-mdpi.png") def I_enter_the_email_address(*args): device.click("email-field-mdpi.png") device.type(args[0]) device.press('back') def I_enter_the_password(*args): device.click("password-field-mdpi.png") device.type(args[0]) device.press('back') def I_enter_the_mobile_number(*args):
def __init__(self): self.device = seemonkey.getDevice()