driver.swipe(start-x,start-y,end-x,end-y)
2.执行系统按键Runtime.getRuntime().exec(cmdstr).waitFor();
//cmdstr为adb命令
3.是否选中elem=driver.findElement(by);elem.getAttribute(“checked”).equals(“true”)
4.等待:Thad.sleep(time);
5.列出系统所有输入法privatefinalstaticStringLIST_ALL=“adbshellimelist-s”;
6.h5和app原生切换SetStringcontexts=driver.getContextHandles();//切换到webview界面driver.context((String)contexts.toArray()[1]);//切换到app端driver.context((String)contexts.toArray()[0]);
7.seekbar拖动WebElementSlider=driver.findElement(By .id("
转载请注明:http://www.0431gb208.com/sjszlfa/6631.html