自动化中app支持schema跳转

贵有恒,何必三更起、五更眠、最无益,只怕一日曝、十日寒。这篇文章主要讲述自动化中app支持schema跳转相关的知识,希望能为你提供帮助。
【自动化中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);



    推荐阅读