首页 > 移动平台 > 详细

自动化中app支持schema跳转

时间:2018-06-27 20:29:37      阅读:320      评论:0      收藏:0      [点我收藏+]

android schema:

String url = "adb -s " + udid + " shell am start -a ‘android.intent.action.VIEW‘ -d " + "‘" + schemaUrl + "‘";

android activity:
String url = "adb -s " + udid + " shell am start " + packageName + "/" + activityName;

ios?:
String[] cmd = {"/usr/local/bin/idevicedebug", "-u", udid, "run","com.apple.test.WebDriverAgentRunner-Runner"};
RuntimeUtil.Result r = RuntimeUtil.execWithResult(cmd, timeoutInSeconds, TimeUnit.SECONDS);
Driver driver = new AppiumDriver<MobileElement>();
driver.get(shcemUrl);

自动化中app支持schema跳转

原文:https://www.cnblogs.com/sunada2005/p/9235815.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!