Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

If-else if Learning in appium-java

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

/** My page Skip to QR code by name Click to share friends * @throws Exception * 1, click on my * 2. Click on my name * 3. Click on the QR code * 4. Click Save * */ 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(); //#Two-dimensional code: driver.findElement(GetByLocator.getLocator("PrivateCardNamerq")).click(); //Share driver.findElement(GetByLocator.getLocator("QrCodeShare")).click(); /** * Screenshot */ 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("Friends")) { driver.findElement(GetByLocator.getLocator("My_Friends")).click(); }else if(My_FriendsListName.equals("Group")){ } else if(My_FriendsListName.equals("WeChat Friends")){ } else if(My_FriendsListName.equals("weibo")){ }else if(My_FriendsListName.equals("QQ Friend")){ }else if(My_FriendsListName.equals("Qzone")){ }else if(My_FriendsListName.equals("Info")){ }else { System.out.println("Not Found!! "); } } //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("Beautiful Start");//Search for friend names 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); }

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 273

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report