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 ...


1

You can use the below mentioned approach that we usually follow in our software testing companies for mobile app testing services. In page object model, each fragment will be considered as a separate page. In that page, if you want to use 'if else' we can create a single method to click on all the options present in the list view inside the fragment. ...


1

Suggestion : Instead of method which will return different screens - If you could verify after selecting this; what you should see & assert if you are able to see, will solve your problem.


1

If I was the network engineer of your work, one "easy way" to create this situation is to block requests from your tests - causing timeouts. I could even do it randomly, just to make your tests even more inconsistent. In a less extreme case, you have to consider that you are in a different network and maybe your tests are fragile for it. But we cannot ...


1

Do not install nodejs through apt-get, which will need sudo rights and appium will not work if node is installed as sudo user. If you have already installed remove it using sudo apt-get remove nodejs sudo apt-get remove npm Download latest nodejs linux binaries Extract into a folder that doesn't need sudo rights to access, for example your home folder. ...


1

Option #1: Microsoft Visual Studio App Center Test is a test automation service for native and hybrid mobile apps, also known as Test Cloud. Tests written using supported frameworks can be run with little modification on hundreds of unique device model and operating system configurations hosted in a Microsoft data center. Initiate test runs using the App ...


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