Hi @amitjaincoer191 Find the below source code and say what issue is there
configured build path with java client 3.1 as u said refer below scrnshot
package Amzn;
import io.appium.java_client.TouchAction;
import io.appium.java_client.android.AndroidDriver;
import java.io.File;
import java.net.URL;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.AfterMethod;
public class Chillitalk {
static AndroidDriver driver;
@BeforeMethod
public void beforeMethod() throws Exception {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("automationName", "Selendroid");
capabilities.setCapability("deviceName", "HT42FWE01991"); /*HTC Mobile*/
capabilities.setCapability("platformVersion", "5.0.1");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("appPackage", "chillitalk.mundio.com");
driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
@Test
public void login() throws Exception
{
driver.findElement(By.id("btn_login")).click();
Thread.sleep(2000);
//Here i pasted your given code
driver.findElement(By.id("text_phno")).sendKeys("9876543210");
driver.findElement(By.id("btn_continue")).click();
driver.findElement(By.id("text_pin")).sendKeys("1234");
Thread.sleep(2000);
driver.findElement(By.id("btn_continue")).click();
Thread.sleep(5000);
}
kindly help me and sorry to disturb u @amitjaincoer191 . am getting below error.