I am using Amazon Device farm -Appium Java TestNG for testing of my android application. I am new to ADF. I am uploading my app and dependency zip, after completing the test, I am getting attached Unique failure error:
I have tried two type of code to identify elements :
- Using Index of elements
- Resource id and Content description of elements
Following is my code:
driver.findElement(By.xpath("//android.widget.EditText[contains(@resource-id,'username')]")).sendKeys("testuser11@mailinator.com");
driver.findElement(By.xpath("//android.widget.EditText[contains(@resource-id,'password')]")).sendKeys("Commonapp1!");
driver.findElement(By.xpath("//android.widget.Button[contains(@content-desc,'Log In')]")).click();;
Have I missed something?