Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Appium

Featured

Mobile Application Testing Tool

Tester can test mobile application with manual methods or with automated scripts. Please find the following automate testing tool below:   1.Appium :- It's an open-source testing tool for mobile and web application as well. Appi...

How to dismiss the keyboard in appium using Java?

When we enter any text in textbox through sendKeys() then after entering the text also the keyboard is not dismissed. If we want to locate the element on the screen then the element could not be located, so to locate the element on screen, the ke...

How to accept Use current location permission popup in Appium?

There are some applications that requires user location when they are launched for the first time. The application requests to accept or reject the location. A popup appears and it should either be accepted or rejected. Its very difficult to loca...

Switch from one application to another application at runtime in Appium

There are many times we have to switch from one application to another while in the middle of execution. In this case we have to switch to the second application and then perform some action and then again return back to the previous application....

How to install Appium on Windows

Appium is an open source tool for mobile automation. Appium is very user friendly and a powerful tool. The best part of this tool is to write test only once and then execute on different devices. This tool is also platform independent and we can ...

How to perform drag and drop in Appium ?

Drag and drop functionality is a very important functionality and we can easily perform through Appium. DesiredCapabilities capabilites = new DesiredCapabilities(); capabilites.setCapability("device", "Android"); capabilites.setCapability...

How to invoke installed application through appium ?

The first step after the starting the Appium server is to launch or invoke the installed application through the script. First we should set the desired capabilities and then launch the application. DesiredCapabilities capabilites = new Desire...

How to save Appium server logs ?

The logs that are generated on the Appium server gets removed as soon as we close the server. If there is a need to study the logs to find the root cause of any issue then we have to save the logs before closing the server. Appium provides a way ...

How to capture screenshot in Appium ?

There are many times when we run our testcases there might be the possibility that testcases may fail and when the testcase may fail then the screenshot of the screen should be captured. We should use the following code to capture the screenshot:...

How to clear field in Appium ?

There are many times that we have some fields that were prefilled and we have to pass some value in the field. So, we first have to clear the textbox and then click the pass the desired text in the field. Suppose we have to check the login funct...

How to run an application in background in appium ?

On some action there might a possibility that the application may take some extra time to execute. So, we may execute that application in the background. Appium provides a method through which we can run any application in background. runAppInBa...

How to remove any application through Appium ?

Appium also provides to remove any application from the device programmatically by just passing the the package name of the application. Suppose that we have test many applications on the same mobile device and the capacity of the device is not...

How to reset any application through Appium ?

There are many times we have to reset application at some point. Lets take the example of browser in the mobile device. Suppose that we are navigating in the application and at some point on clicking the link it should opened in the browser and i...

How to install application programmatically in Appium ?

There are many times there is a need to install the application programmatically in our testcase. The first thing that we should do before installing the application is to check that whether the desired application is installed in the device or n...

What is bundle Id in Android ?

Bundle Id is basically the package name of the android application and it the unique identifier for all the android applications. Bundle id should always be unique ie the two application should not have same bundle id and if the bundle id is same...

How to lock the mobile device screen in Appium ?

The mobile device screen can able to locked programmatically. Appium provides a method through which we can perform the same. lockScreen(int seconds) The argument should be an integer value ie the number of seconds we want the screen to be in l...

How to perform the screen rotation in Appium ?

Many times the application screen has to be rotated to automate any testcase. Most of the applications opens in portrait mode and if there we have to verify something in landscape mode then we cannot rotate the screen manually in the middle to an...

How to send any character in uppercase in Appium ?

Appium provides keycodes for the alphabets only in the lowercase. If we have to send any alphabet in uppercase then we have to send the keycode of that alphabet with the shift keycode. Practically also we first press the shift key and then press ...

How to scroll to a specific element in Appium ?

Many times there is a requirement in the test step to move to a specific link, keyword, etc. So, we have two methods through which we can directly scroll to the desired element. The two methods are as follows: scrollTo(String text) scrollTo...

How to send a key event to the device ?

There are two methods we use to send the key events: sendKeys() sendKeyEvent(int) Every keyboard event is associated with an integer value and we have to pass the integer value in the method to perform the desired action. Suppose if w...

How to locate elements through UIAutomatorViewer ?

In my previous blog I have explained about Methods to locate elements through Appium. In this I will guide you to locate elements through UIAutomatorViewer. Locating element is one of the difficult task in mobile automation. We can use UIAutom...

Methods to locate elements through Appium

Locating element is the basic activity to automate any web application or the mobile application. The action can only be performed on the element once we have located the element successfully. If the element is not located then we get NoSuchEleme...

How to swipe in Appium ?

Swipe is one of the basic functionality in any mobile application and in order to automate the mobile application the swipe functionality should be successfully implemented. Appium has a wide range of libraries and a method to swipe the screen...

Error obtaining UI hierarchy

Sometimes when we try to capture the screenshot using UI Automator Viewer then the following error is displayed and the screenshot is not captured. Error obtaining UI hierarchy Error while obtaining UI hierarchy XML file: com.android.ddmlib...

A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT)

The first step to use Appium is to configure the system and the most common error that usually comes while configuring Appium is: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Orig...

node is not recognized as an internal or external command in appium

I tried to run the Appium server from the command prompt but I got the error that "node is not recognized as an internal or external command". I executed the following command on the command prompt: node appium Solution: To start the App...

Start Appium server from the code

When we are automating the mobile application and set cron jobs at different time intervals then we do not start and stop the appium server manually. We should have some code that will run before our testcases ie they should be executed in the be...

What is Appium?

Now a days, the trend of browsing has changed a lot. Earlier, we use to sit on the system and perform various activities but now in this modern era the trend has been changed and we use to do all the internet related activities on our mobile devi...

Could not find resource-id field in UI Automator viewer

There are many options to locate the element but the easiest way to locate an element is by its id. In webpages we can easily locate the element by its id but on mobile its very tricky to locate the element by id. I am automating an Android app...

An element could not be located on the page using the given search parameters

I tried to run the below code public class TestSelendroidApp { public static AndroidDriver driver; public static void main(String[] args) throws MalformedURLException, InterruptedException { File app = new File("E:\software\sel...

Original error: Could not find a connected Android device.

I tried to run the below piece code and getting the error Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: A new session could not be created. public class TestCaller { public static AppiumDriver driver; ...

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Screen did not u...

I tried to run the below piece code and getting the error Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: A new session could not be created. public class TestCaller { public static AppiumDriver driver; ...

Cannot instantiate the type AppiumDriver issue

I was trying to open the contacts list of my mobile through the code given below but the piece of code is showing me error when trying to instantiate the Appium driver. public class TestContactsNativeApp { public static AppiumDriver driver;...

Unable to select file from Appium android setting modal

In Appium Android setting modal, on clicking the choose button, the modal gets closed and user is not able to select the desired file from his machine. The reason for the above issue that Appium is not able to find some registry files require...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: