操作 - 执行()方法不适用于文本字段上的iOS离子应用程序

问题描述:

我试图在文本字段(用户名和密码)中输入数据。我试过2种方法,操作 - 执行()方法不适用于文本字段上的iOS离子应用程序

1. sendkeys(), 

问题:它没有输入任何数据,但测试仍在继续。

2. Actions actions = new Actions(driver); 
    actions.moveToElement(element); 
    actions.click(); 
    actions.sendKeys(str); 
    actions.build().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
应用:科尔多瓦应用
Java的客户端:4.1.2
Appium版本:1.6。 5

试试这个:

  1. 用于电子邮件的xpath选择器是:

    login.input.email=id:Email 
    
  2. tree.setPage(“登录);

    tree.input("input","email",str); //your input string