macaca-java-biz-sample
macaca-java-biz-sample copied to clipboard
基于MacacaJava版的UI自动化示例 (a sample for macaca business development based on wd.java(macacaClient))
在该机型上,脚本中使用该代码driver.elementByXPath(”******“).click();,会报空指针异常 2019-03-28 14:18:39 Request:http://localhost:3456/wd/hub/session/9d146aed-bf8d-42a7-a6b3-d4748a6bd1d6/element:{"using":"xpath","value":"//android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.support.v4.widget.DrawerLayout[1]/android.widget.RelativeLayout[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[2]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.TextView[1]"} 2019-03-28 14:18:39 Response:{"status":0,"value":{"ELEMENT":"1"},"sessionId":"9d146aed-bf8d-42a7-a6b3-d4748a6bd1d6"} 2019-03-28 14:18:39 Request:http://localhost:3456/wd/hub/session/9d146aed-bf8d-42a7-a6b3-d4748a6bd1d6/element/1/click:{} 2019-03-28 14:18:40 Response:{"status":7,"value":"An element could not be located on the page using the given search parameters.","sessionId":"9d146aed-bf8d-42a7-a6b3-d4748a6bd1d6"} java.lang.NullPointerException at macaca.client.common.Utils.deleteRequest(Utils.java:125) at...
增加了配置autoAcceptAlerts值为boolean类型的true,但是iOS真机上还是会没有处理权限弹窗信息
为了方便查看源码,我吧biz层和wd层都以源码的形式引入到了这个demo中,执行的的时候发现输入的速度太快了。账号只输入了一半,密码还没输入,导致找不到login按钮报错。。