I want to capture screenshots by elements in appium similar to the one in selenium. I am using python. Could not find much about this, is there any way to achieve this?

1 Answer 1


I think you can use the Appium driver.get_screenshot_as_base64() command described in the documentation: http://appium.io/docs/en/commands/session/screenshot/

Now you should have a screenshot of the full page. You can ask the element its location and crop the screenshot. This is described for Python and Selenium in detail here: https://stackoverflow.com/questions/15018372/how-to-take-partial-screenshot-with-selenium-webdriver-in-python

Although I didnt try it myself I think the cropping should work the same for Appuim based elements and screenshots.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.