addressBar = (AutoCompleteTextView) mActivity.findViewById(package.R.id.addressBar);
TouchUtils.tapView(this, addressBar);
sendKeys("1"); //Works
sendKeys("G M A I L"); // Works - Result would be "gmail"
sendKeys("G M A I L . C O M"); // Doesn't work
sendKeys("{.}"); // Doesn't work
sendKeys("gmail") // Doesn't work
sendKeys("G M A I L {.} C O M") //Doesn't work
我正在使用「InstrumentationTestCase2」編寫android測試腳本。 (點)sendKeys - 發送特殊字符
你試過 'sendKeys(56)'? – user370305 2012-07-17 06:44:19
高超的男人。這很直接。 – 2012-07-17 06:45:51
如果你不介意我發佈了答案。 – user370305 2012-07-17 06:49:11