I am testing android ionic application . I have never tested ionic application . my application is launching but appium is not able to perform even a click . Please help
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.remote.MobileCapabilityType;
public class Hybrid {
public static AndroidDriver<AndroidElement> Capabilities() throws MalformedURLException {
File f =new File("src");
File fs=new File (f,"base.apk");
DesiredCapabilities cap= new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.DEVICE_NAME,"Android Device");
cap.setCapability(MobileCapabilityType.APP,fs.getAbsolutePath());
AndroidDriver<AndroidElement> driver=new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"),cap);