自动化中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);

posted @ 2018-06-27 20:16  myLittleGarden  阅读(2926)  评论(0编辑  收藏  举报