Capturing Screen-Shot in Appium Mobile Automation


Capturing Screen-Shot in Appium Mobile Automation


As we all know capturing screenshot is one of the most important testing process that we need to follow either in manual or in automation testing to report bug/issue to the development team or to simply show the testing results to different Stakeholders. So in this blog, I am going to discuss how we can capture a screenshot using Appium for our mobile automation test.

In this example to Capture Screenshot, we can create one utility. Let’s Name it as CaptureScreenShot.


For Capturing Screenshot we are going to use TakeScreenshot interface of selenium webdriver and store that screenshot with date and time in a particular folder and call this utility whenever we need to take a screenshot in our mobile App.

Below is the Code Snippet for this






SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post
April 28, 2019 at 4:43 AM

Is there a way to take full page screenshot of a long webpage

Reply
avatar
April 28, 2019 at 9:55 AM

You can refer to this blog for taking full page screenshot

https://www.qaautomation.co.in/2018/11/full-page-screenshot-using-selenium-ashot.html

Reply
avatar