Robotium中文API(18)-solo.typeTextInWebElement
来源:互联网 发布:精易编程助手qq点赞 编辑:程序博客网 时间:2024/05/16 10:27
Robotium中文API(18)-solo.typeTextInWebElement
typeTextInWebElement
该方法根据传入参数不同有不同使用方法。
public void typeTextInWebElement(By by, String text)
参数:
by
– By对象,如: By.id("id")
和 By.name("name")
text
– 待输入的文本内容。
Match –
假定有多个对象,根据此值决定匹配哪一个。
例子:
public void testSearch(){ solo.sleep(4000); webview = (WebView) solo.getView(R.id.webView1); //word是百度网页搜索框的name值,补充手机访问的是wap.baidu.com 查询id或name可以通过firefox很方便的得到 By search = By.name("word"); solo.typeTextInWebElement(search, "robotium中文网");
0 0
- Robotium中文API(18)-solo.typeTextInWebElement
- Robotium中文API(01)-solo.assertCurrentActivity
- Robotium中文API(02)-solo.assertMemoryNotLow
- Robotium中文API(03)-solo.clearEditText
- Robotium中文API(04)-solo.clickInList
- Robotium中文API(05)-solo. clickLongInList
- Robotium中文API(06)-solo.clickLongOnScreen
- Robotium中文API(07)-solo.clickLongOnText
- Robotium中文API(07)-solo.clickLongOnText
- Robotium中文API(08)-solo.clickLongOnTextAndPress
- Robotium中文API(09)-solo.clickLongOnView
- Robotium中文API(10)-solo.clickOnActionBarHomeButton
- Robotium中文API(11)-solo.clickOnActionBarItem
- Robotium中文API(12)-solo.clickOnButton
- Robotium中文API(13)-solo.clickOnCheckBox
- Robotium中文API(14)-solo.clickOnEditText
- Robotium中文API(15)-solo.clickOnImage
- Robotium中文API(16)-solo.clickOnImageButton
- JDK源码-String
- Codeforces 508C Anya and Ghosts
- Linux-文件查找
- html5和css3表单样式美化插件
- Substring with Concatenation of All Words
- Robotium中文API(18)-solo.typeTextInWebElement
- Java 向ios推送消息
- 抓取网络端口数据包
- Robotium中文API(19)-solo.enterText
- Lambda 表达式语法
- Robotium中文API(20)-solo.typeText
- Linux-特殊权限SUID
- WebKit.net最简单使用方法
- [leetcode]Longest Valid Parentheses