# Do appium take screenshot from specific element, similar to Selenium WebDriver?

**URL:** <https://discuss.appium.io/t/do-appium-take-screenshot-from-specific-element-similar-to-selenium-webdriver/19713>\
**Category:** Support\
**Created:** [November 19, 2017, 9:41pm UTC](https://discuss.appium.io/t/do-appium-take-screenshot-from-specific-element-similar-to-selenium-webdriver/19713 "2017-11-19T21:41:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wellavelino](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/ecae2f/32.png) [@wellavelino](https://discuss.appium.io/u/wellavelino)\
**Post date:** [November 19, 2017, 9:41pm UTC](https://discuss.appium.io/t/do-appium-take-screenshot-from-specific-element-similar-to-selenium-webdriver/19713/1 "2017-11-19T21:41:37Z")

</div>

I’ve searched a way to take screenshot from specific element on mobile automation, using appium is possible?

regards,

---

<div class="post-metadata">

**Author:** ![Cepin](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/ce73a5/32.png) [@Cepin](https://discuss.appium.io/u/Cepin)\
**Post date:** [October 23, 2018, 9:35am UTC](https://discuss.appium.io/t/do-appium-take-screenshot-from-specific-element-similar-to-selenium-webdriver/19713/2 "2018-10-23T09:35:52Z")

</div>

you can get screenshot of element directly using: Ruby:

element = driver.find\_element(:predicate, “type == ‘XCUIElementTypeSlider’”)  
screenshot = driver.element\_screenshot\_as(element ,:base64)
