In the above screenshot, I am trying tap on “Add new account button”
I tried
driver.findElementByAndroidUIAutomator(“text(“Add new account”)”).click();
driver.findElementByXPath("//android.widget.Button[@text=‘Add new account’]").click();
driver.findElementById(“com.ezepay:id/bAddAcc”).click();
All three are giving me same Error: An element could not be located
Could you please let me know where I am going wrong?
I thought my approach to reach this is right.