我正在尝试在文本字段中输入数据(用户名和密码)。我尝试了两种方法,
1. sendkeys(),
问题:它没有输入任何数据,但测试仍在继续。
2. Actions actions = new Actions(driver);
actions.moveToElement(element);
actions.click();
actions.sendKeys(str);
actions.build().perform();
问题:perform()抛出异常:
Method has not yet been implemented
org.openqa.selenium.WebDriverException: Method has not yet been implemented (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 14 milliseconds
操作系统:iOS 10.3.3
应用程序:cordova app
Java客户端:4.1.2
Appium版本:1.6.5
答案 0 :(得分:0)
试试这个:
电子邮件的xpath选择器:
login.input.email=id:Email
tree.setPage("登录);
driver.input("输入""电子邮件",STR); //你的输入字符串