手记

appium自动化属性使用一

    /**     * 消息免打扰*/    public static void Group_message_disturb()    {        AndroidElement disturbMode=driver.findElement(GetByLocator.getLocator("Group_Mess_disturb"));        String status=disturbMode.getAttribute("checked");        disturbMode.click();        status=disturbMode.getAttribute("checked");        if(status.equals("true")){            System.out.println("消息免打扰打开成功");        }else{            System.out.println("消息免打扰关闭成功");        }    }

0人推荐
随时随地看视频
慕课网APP