INNER CODE UNIT · Python

return_home

ctripcorp/flybirds · flybirds/core/plugin/plugins/default/step/app.py:50

def return_home(context):
    log.info("ios press home button")
    g_Context.app.return_home()


def stop_app(context):
    package_name = gr.get_app_package_name()
    g_Context.app.shut_app(package_name)


def return_pre_page(context):
    g_Context.element.key_event("4")


def to_app_home(context):
    schema_goto_module = gr.get_value("projectScript").custom_operation
    to_home = getattr(schema_goto_module, "to_home")
    to_home()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…