3 votes
Accepted

Selenium TestNG - java.lang.NullPointerException in automation testing

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 ...
Niels van Reijmersdal's user avatar
3 votes

appium-doctor --android returns error AppiumDoctor ✖ android could NOT be found in /Library/Android/sdk! on macOS

This answer helped me to resolve the error - android could NOT be found in /Users/{user_name}/Library/Android/sdk! Sharing a screenshot for helping the community
user54156's user avatar
2 votes
Accepted

Appium(Android Mobile) : Click button using X Y coordinate(if can't find ID or Xpath)?

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 ...
Niels van Reijmersdal's user avatar
2 votes

Appium : Best way to automate e-Signature scenario using Appium?

Try using testRigor. It is as easy as: drag from "signaturePad" with offset "0,0" to "signaturePad" with offset "100,100" tap "Done" Disclaimer: I'm a co-founder of testRigor.
Artem's user avatar
  • 159
2 votes

To enhance my android automation skills which apps will provide different types of element to practice?

Just to practice you can start with basic and default application like calculator If you are done with basic stuff and want to interact with diff types of elements then you can consume Amazon/Facebook ...
Narendra Chandratre's user avatar
1 vote
Accepted

How to cross app test on Android?

Here's a possible suggestion to help you resolve your query, First, you need to understand that Appium is a popular open-source library used for mobile test automation, but it is mostly used for ...
IAmMilinPatel's user avatar
1 vote

Launch firefox browser on Android devices with Appium

You can try DesiredCapabilities dc = new DesiredCapabilities(); dc.setCapability("appPackage", "org.mozilla.firefox"); dc.setCapability("appActivity", ".App");
Subhist Subedar's user avatar
1 vote

Whatsapp Web QR code Scanning using Appium Java

I solved this recently by requesting that Dev add an attribute to the QR code element that Appium could extract and run with. You aren't testing the QR code but the flow the QR code allows. You can ...
kirbycope's user avatar
  • 4,090
1 vote
Accepted

android : How to fix? - ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not enabled due to current app not in whitelist

After searching on Google & suggested by @pavelsaman, I took following steps and this error particularly got resolved : Re-install [Uninstall and install again] the application Open mobile ...
Narendra Chandratre's user avatar
1 vote
Accepted

react-native + android error : How to fix? - java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

Verify which gradle version installed on your machine and make changes in my gradle-wrapper.properties file to distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip Note - for ...
Narendra Chandratre's user avatar
1 vote

Appium Pagefactory throws noSuchMethodException when running from POM

it's a bit embarrassing, (because i remembered I did this before) After doing an mvn clean, and an mvn compile again, Then the issue disappeared. something probably got stuck somewhere and needed a ...
Jano's user avatar
  • 113
1 vote
Accepted

Discriminating between two identical elements when they are both "displayed" and "enabled" but only one is actually visible

I believe the UI has a certain hierarchy and normally object hierarchy has ordered structure (like XML). That means that when you add an element you don't just add it to a random place but to a ...
Alexey R.'s user avatar
  • 11.6k
1 vote

Appium :Click on capture image button of inbuilt camera in mobile app. is it possible?

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 ...
kirbycope's user avatar
  • 4,090
1 vote

Launching Twitter through Appium on a real device results in an error

I managed to fix it :) The launchable activity was .StartActivity.
Keva161's user avatar
  • 11
1 vote
Accepted

Using both espresso and uiautomator and test is failing on Firebase, but not on AS emulator

Found the culprit. This is not enough: fun defaultBrowserAppList() = mDevice.findObject((UiSelector().text("Browser app")). For some reason it doesn't match the text. Should be replaced with ...
Oana Horvath's user avatar
1 vote

NullPointerException error in POM code

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() ...
PDHide's user avatar
  • 11k
1 vote

Permissions error trying to run Appium test on Android

This was the solution that helped me: enable USB debugging, in USB debugging (Security settings) Install via USB options in the device you are using.
Kavitha's user avatar
  • 11
1 vote
Accepted

Permissions error trying to run Appium test on Android

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....
Kate Paulk's user avatar
  • 31.5k
1 vote

how to find element by xpath for android appium

Get your developers to add element ids, finding elements in this fashion is error prone and breaks your tests whenever the app changes in ways that are hard to diagnose and repair quickly. This kind ...
Conrad B's user avatar
  • 213
1 vote

While following Page Object Model, how handle Fragments in Android

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 ...
Vishal's user avatar
  • 1,254
1 vote

While following Page Object Model, how handle Fragments in Android

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.
Narendra Chandratre's user avatar
1 vote
Accepted

What could be some reasons appium automation tests pass on home wifi but fails on work wifi?

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 ...
João Farias's user avatar
  • 10.5k
1 vote

How do I setup and get started with Appium on Ubuntu?

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 ...
Brian McCarthy's user avatar
1 vote

How can I test iOS & Android mobile applications using Microsoft Visual Studio?

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 ...
Brian McCarthy's user avatar

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