def temperature(): function.click(model['temperature'][0], model['temperature'][1]) function.text_input(status['temperature']) # 输入体温 function.click(model['exit'][0], model['exit'][1]) # 关闭软键盘
def submit(): function.click(model['submit'][0], model['submit'][1])
def parents_status(): function.click(model['parentsStatus'][0], model['parentsStatus'][1]) if status['parentsStatus']: # 如果情况正常 click_first() else: click_second()
def mind_status(): function.click(model['mindStatus'][0], model['mindStatus'][1]) if status['mindStatus']: # 如果状况正常 click_first() else: click_second()
def is_sick(): function.click(model['isSick'][0], model['isSick'][1]) if status['isSick']: # 如果就诊 click_first() else: click_second()
def is_back(): function.click(model['isBack'][0], model['isBack'][1]) if status['isBack']: # 如果反苏 click_first() else: click_second()
def main_entrance(): function.click(model['main'][0], model['main'][1]) function.delay(1) # 此处增加延迟,因为加载填报页面较慢
def click_second(): function.click(model['secondKey'][0], model['secondKey'][1])
def click_first(): function.click(model['firstKey'][0], model['firstKey'][1])