batch automatione-commerce operationscross-border e-commerce

Morning-Shift Order-Page Check for Cross-Border E-commerce with Mobile Batch Automation

The morning shift does one stretch: start automation, find "Orders," tap in, and take one full-screen shot. If the page never appears, it stops on that shot. A person handles login.

2 min read

The morning shift answers one question first: can this store’s order page be opened today. If it can, keep the screenshot. If it cannot, keep the screenshot, then stop. Listing, price changes, and customer-service replies stay out of this file.

Many devices on the central control main screen

The phone is already inside the store app, and already signed in. The login page, verification codes, and permission dialogs are outside this script. A person clears those first, then runs it.

function main() {
    if (!isServiceOk()) {
        if (!startEnv()) {
            logw("启动自动化返回 false");
            return;
        }
    }
    if (!isServiceOk()) {
        logw("服务未就绪");
        return;
    }

    let entry = label("订单").getOneNodeInfo(10000);
    if (!entry) {
        logw("没有找到订单入口");
        image.captureFullScreen();
        return;
    }

    clickPoint(entry.bounds.centerX(), entry.bounds.centerY());
    sleep(1000);
    image.captureFullScreen();
    logd("订单页已截图");
}

main();

The argument to getOneNodeInfo is milliseconds. The sample uses 10000. If this store’s order entry is often slower, raise that number. When the time is up and there is still no node, the function returns empty, and the script captures the current screen and stops. sleep(1000) waits for the page to change after the tap before the shot. If it is still on the old page, raise that 1000.

bounds.centerX() and centerY() on the node are the point to tap this time. If the entry copy changes, label("订单") no longer matches, the log is “没有找到订单入口”, and the screenshot shows the actual title. Change the label string to the characters on the screen, then run again.

On iOS 17 or later, if the service is still not ready after startEnv, call startTunnel() first, following the docs. When it returns an empty string, call startEnv() again. If an old tunnel is still there, startEnv cannot shut it down on its own.

This file depends on “start automation,” which is why it can read nodes. From EC iOS USB 10.7.0 (2026-09-08), USB HID can run without a Bluetooth or OTG board. The phone has to be iOS 17 or later, and it is mutually exclusive with “start automation.” A phone that already has USB HID on should not run this stretch. Node queries stay on devices that have started automation.

In the central control, each phone maps to its own store account. After the run, look at only two result lines. “订单页已截图” means this morning stretch passed. “没有找到订单入口” or “服务未就绪” means open that screenshot and then decide whether a person should sign in, or whether the label text should change. Only after this stretch passes do you write a separate script for price changes or replies.


About EasyClick: A mobile automation script development platform covering three phone ecosystems: Android without root, iOS without jailbreak, and HarmonyOS. It also offers Apple script writing, Apple cluster control, Android cluster control, remote cloud control, and AI phone cluster control. → Explore all products

Ready to build it for real?

Every approach in this article can be built with EasyClick capabilities on iEasyClick — full documentation, developer tools and automation products, free to try.

Visit iEasyClick →