3

In the test you use a property driver which has not been instantiated, because you create the driver into local a variable called Driver. See the case-difference? The class property driver has a default value of NULL and that is why you get a nullpointer exception when you try to use it. You cannot use objects that are NULL. This is a foundational Java ...


1

I can't say for sure yes but I do have a trick I have used in the past. So, you'll want to open the Appium Inspector session. If you can find the selector then you're off to a good start. If the element is "not intractable" you can use the selector to get the size and location. From that you can derive where to Tap(x,y).


1

I would probably find a element you can find and use an offset from that location. See this to get a Point from element: http://appium.io/docs/en/commands/element/attributes/location/ To click on some coordinates: TouchAction touchAction=new TouchAction(driver); touchAction.tap(xPoint, yPoint).perform(); Code from: https://discuss.appium.io/t/tapping-on-...


1

1. you are not passing any driver instance to the Dashboard DashboardPage 2. You are trying to access local variable 'driver' which is not initialized yet Solution: Add : public void launchapp() { driver = new Setup().initializeAppiumServer(); } Or pass the already initialized driver to the dashboard: in your dashboard class also or pass ...


1

I suspect your problem lies with the errors: java.lang.SecurityException: You need the android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS This is saying that the phone does not have permission to run your software. Because your code is setting the capability "noReset" to true, you ...


Only top voted, non community-wiki answers of a minimum length are eligible