def switch_app_catch_pic():
    driver = BasePage().get_driver()
    if IS_APPLET:
        AppletUtil.switch_operate(driver, switch_to_app=True)
def screenshot(error_type):
    report_path = ReportPath().get_path()
    driver = BasePage().get_driver()
    img_name = DirAndFiles(report_path).get_screenshot(driver, error_type)
    print('screen_shot[' + error_type + "--" + img_name + ']screen_shot\n')
    return img_name