自动化中app支持schema跳转
Posted 我的小花园
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了自动化中app支持schema跳转相关的知识,希望对你有一定的参考价值。
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跳转的主要内容,如果未能解决你的问题,请参考以下文章