# Differentiate between an active and inactive button

**URL:** <https://forums.eggplantsoftware.com/t/differentiate-between-an-active-and-inactive-button/3715>\
**Category:** Eggplant Functional\
**Created:** [February 6, 2017, 5:12pm UTC](https://forums.eggplantsoftware.com/t/differentiate-between-an-active-and-inactive-button/3715 "2017-02-06T17:12:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepa](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@Deepa](https://forums.eggplantsoftware.com/u/Deepa)\
**Post date:** [February 6, 2017, 5:12pm UTC](https://forums.eggplantsoftware.com/t/differentiate-between-an-active-and-inactive-button/3715/1 "2017-02-06T17:12:28Z")

</div>

How do you differentiate between a button that is active and inactive. For eg: my application has a Next button - it appears in blue when active and in grey when inactive. But eggplant is not differentiating between the grey and blue buttons. I tried increasing the tolerance but that doesn’t help.

---

<div class="post-metadata">

**Author:** ![EggplantMatt](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/eggplantmatt/32/3_2.png) [@EggplantMatt](https://forums.eggplantsoftware.com/u/EggplantMatt)\
**Post date:** [February 6, 2017, 5:33pm UTC](https://forums.eggplantsoftware.com/t/differentiate-between-an-active-and-inactive-button/3715/2 "2017-02-06T17:33:00Z")

</div>

You need to have images of it in both states. Usually you would care whether it was active or inactive and only click it if it was active, but if you don’t care, you can make a collection with images of it in both states. Then you can refer to the collection to find the button in either state.
