Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地频道任务代码 #71

Open
uhappylearning opened this issue Jun 16, 2020 · 0 comments
Open

本地频道任务代码 #71

uhappylearning opened this issue Jun 16, 2020 · 0 comments

Comments

@uhappylearning
Copy link

/**

  • @description: 本地频道

  • @param: null

  • @return: null
    */
    function localChannel() {
    toastLog('开始执行本地频道任务');
    sleep(1000);
    while (!desc("学习").exists());//等待加载出主页
    desc("学习").click(); //点击主页正下方的"学习"按钮
    delay(2);
    className("android.widget.TextView").text("北京").findOne().parent().click();
    delay(2);
    className("android.widget.TextView").text("北京卫视").findOne().parent().click();
    delay(2);
    sleep(1000);
    back();
    sleep(2000);
    toastLog('本地频道任务执行结束!');
    //点击学习控件回到新闻首页
    id("home_bottom_tab_button_work").findOne().click();
    sleep(1000);

    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@uhappylearning and others