Appium??????????????Щ???
???????????? ???????[ 2015/4/23 13:18:42 ] ????????Appium ?????????? ????????
????Appium?????????????
?????????Appium???????????????????????????????????????????????????Appium?????????????????????????????????????????????????????????Appium???iOS??Android??FireFoxOS???????????????FireFoxOS????????????????????????????????????
????Appium??iOS???????????????????????UI Autoamtion????Android???4.2????????????Uiautomator??4.1?????????eBay??selendroid??????????????????????????????????????п????????????????????????Uiautomator???????????????
??????????????????????
????Appium iOS ??????
????Appium Android selendroid ??????????????????????????????2?
????Appium Android Uiautomator ????????????????????
????selendroid??????????
????Appium iOS???????????
????????????????UI Automation??????????UI Automation??????????????????
??????1????????Element??setValue??????
??????2??UI Automation?е? UIAKeyboard?????????typeString??????
??????????????????????????????????????????????????iOS????????棬???????????????????????????????????????1???????????????????????set???????????????????????textChanged???????????2???????????????????????????????????????????????????????????????????
????Appium iOS?汾?? sendkeys??????????? UIAKeyboard??typeString??????????typeString????????????????????Appium iOS?汾????????????????typeString????????????????????????????????typeString?????????????????????????????????????????????????????????typeString???????????????????£????????setValue???????????????????Appium????????setValue??
????Appium Android Uiautomator???????????
???????????????????£????????????????Appium???ЩApp??????????????????????????????App????????????????????????Ъ????????????????????????????????????????????????????????????????з???д???????????ο???
???????? ?????δ???????£?????????????????????
????input.sendKeys("???????й?");
????????????????????????????????
????input.sendKeys("ssssssss");
????????????????????????????????Google?????????????????л?????????????????????????????????????????????Google????£????????????????????????????????????????????????????????JS????????????????????????Java?汾??????????£?
????Java
????inputDir.put("element"??((RemoteWebElement)input).getId());
????inputDir.put("text"??"???????й?");
????driver.executeScript("element:setText"?? inputDir);
??????????????????????????????
?????e???????
?????????Appium ??sendkeys???????Client???????http????Appium??server????AppiumServer???????? ????? rounting ???????????????????????·??? rest.post(‘/wd/hub/session/:sessionId?/element/:elementId?/value’?? controller.setValue); ???????????????controller??setValue???????????????????????????bootstrap????е?AndroidElement.java???????????setText?????????????£?
????Java
????public boolean setText(final String text) throws UiObjectNotFoundException {
????if (UnicodeEncoder.needsEncoding(text)) {
????Logger.info("Sending Unicode text to element: " + text);
????String encodedText = UnicodeEncoder.encode(text);
????return el.setText(encodedText);
????} else {
????Logger.info("Sending plain text to element: " + text);
????return el.setText(text);
????}
????}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11