真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

appium-java中if-elseif學(xué)習(xí)

/** 我的頁(yè)面通過(guò)名字跳轉(zhuǎn)到二維碼點(diǎn)擊分享好友

     * @throws Exception 
     * 1、點(diǎn)擊我的
     * 2、點(diǎn)擊我的名字
     * 3、點(diǎn)擊二維碼
     * 4、點(diǎn)擊保存
     * */
    public static void  PersonalSettingsPagesShareFriends() throws Exception
    {
        Thread.sleep(5000);
        driver.findElement(GetByLocator.getLocator("MyInfo")).click();
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        driver.findElement(GetByLocator.getLocator("PrivateCardName")).click();
        //#二維碼:
        driver.findElement(GetByLocator.getLocator("PrivateCardNamerq")).click();

        //分享
        driver.findElement(GetByLocator.getLocator("QrCodeShare")).click();
        /**
         * 截圖*/
        TJTAppiumTest.ScreenshotAsDate("QrCodeShare");

        List My_FriendsList =  driver.findElements(GetByLocator.getLocator("My_Friends"));

        for(AndroidElement ls:My_FriendsList)
        {
            String My_FriendsListName = ls.getAttribute("text");
            System.out.println("My_FriendsListName:" + My_FriendsListName);

            if(My_FriendsListName.equals("好友"))
            {
                driver.findElement(GetByLocator.getLocator("My_Friends")).click();
            }else if(My_FriendsListName.equals("小組")){

            } else if(My_FriendsListName.equals("微信好友")){

            } else if(My_FriendsListName.equals("微博")){

            }else if(My_FriendsListName.equals("QQ好友")){

            }else if(My_FriendsListName.equals("QQ空間")){

            }else if(My_FriendsListName.equals("信息")){

            }else {
                System.out.println("沒(méi)有找到??!");
            }
        }

        //driver.findElement(GetByLocator.getLocator("My_Friends")).click();
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        driver.findElement(GetByLocator.getLocator("friend_share_contact")).click();
        driver.findElement(GetByLocator.getLocator("Friends_share_search")).sendKeys("美麗的開(kāi)始");//搜索好友名稱
        driver.findElement(GetByLocator.getLocator("SelectTheSearchResults")).click();
        driver.findElement(GetByLocator.getLocator("Share_send")).click();
        TJTAppiumTest.ScreenshotAsDate("Share_send");
        driver.pressKeyCode(AndroidKeyCode.BACK);
        driver.pressKeyCode(AndroidKeyCode.BACK);
        driver.pressKeyCode(AndroidKeyCode.BACK);

    }

當(dāng)前標(biāo)題:appium-java中if-elseif學(xué)習(xí)
文章源于:http://weahome.cn/article/jphcoj.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部