# ImageFound finding text with asprostrophe

**URL:** <https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715>\
**Category:** Eggplant Functional\
**Tags:** eggplant, sensetalk, eggplant-functional\
**Created:** [December 24, 2021, 9:26am UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715 "2021-12-24T09:26:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhan19920](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/c6cbf5/32.png) [@bhan19920](https://forums.eggplantsoftware.com/u/bhan19920)\
**Post date:** [December 24, 2021, 9:26am UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/1 "2021-12-24T09:26:41Z")

</div>

I have this string ‘LOAD’ button in my SUT, then I am trying to find if this text exist in the script using the command ImageFound(text:"‘LOAD’ button") but it always return me false. I am able to find the word LOAD itself but when I add the apostrophe around it, the result is not right.

---

<div class="post-metadata">

**Author:** ![LoganC](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/loganc/32/123_2.png) [@LoganC](https://forums.eggplantsoftware.com/u/LoganC)\
**Post date:** [December 25, 2021, 1:41am UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/2 "2021-12-25T01:41:26Z")

</div>

Can we get a screenshot of the graphic you are trying to find? I did a quick test in notepad and EPF found ‘LOAD’ button okay.

---

<div class="post-metadata">

**Author:** ![FusingToe](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/f/a9a28c/32.png) [@FusingToe](https://forums.eggplantsoftware.com/u/FusingToe)\
**Post date:** [December 27, 2021, 1:58pm UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/3 "2021-12-27T13:58:28Z")

</div>

Like LoganC mentioned, a screenshot would be helpful in determining the best approach here.

With that said, in some cases Eggplant has a difficult time recognizing the characters depending on font or unusual backgrounds. Using a [Character Collection](https://docs.eggplantsoftware.com/ePF/using/epf-character-collection.htm) might be helpful for you.

---

<div class="post-metadata">

**Author:** ![bhan19920](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/c6cbf5/32.png) [@bhan19920](https://forums.eggplantsoftware.com/u/bhan19920)\
**Post date:** [December 28, 2021, 1:29am UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/4 "2021-12-28T01:29:30Z")

</div>

sorry i missed out the screenshot.  
This is the screenshot with the text ‘LOAD’ button text in one of the panes.

 ![image](https://forums.eggplantsoftware.com/uploads/default/original/1X/1dc10cba75f31992e3b12139f00a29e04d2a8e17.png)

---

<div class="post-metadata">

**Author:** ![bhan19920](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/c6cbf5/32.png) [@bhan19920](https://forums.eggplantsoftware.com/u/bhan19920)\
**Post date:** [December 28, 2021, 2:17am UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/5 "2021-12-28T02:17:29Z")

</div>

i tried to set rectangle to a smaller size for the search zone and also tried the Character Collection. But still it cant find the text when I add asprostrophe.

---

<div class="post-metadata">

**Author:** ![bruceives](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/b/74df32/32.png) [@bruceives](https://forums.eggplantsoftware.com/u/bruceives)\
**Post date:** [December 28, 2021, 6:59pm UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/6 "2021-12-28T18:59:25Z")

</div>

Here are two things i would try:

1. If the word button is unique to that panel, then search for that:  
ImageFound(text:“button”)

2. If the phrase ‘LOAD’ button is significant, then try it without the first apostrophe:  
ImageFound(text:“LOAD’ button”)

---

<div class="post-metadata">

**Author:** ![J\_Grosso](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@J\_Grosso](https://forums.eggplantsoftware.com/u/J_Grosso)\
**Post date:** [January 4, 2022, 4:47pm UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/7 "2022-01-04T16:47:37Z")

</div>

You could try \<\<‘LOAD’\>\>

---

<div class="post-metadata">

**Author:** ![kenandrus](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/96bed5/32.png) [@kenandrus](https://forums.eggplantsoftware.com/u/kenandrus)\
**Post date:** [January 7, 2022, 7:28pm UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/8 "2022-01-07T19:28:32Z")

</div>

Hello,  
The suggestions to search for “LOAD” are valid. If you find two instances of the text you can use the EveryImageLocation function and click the second item in the property list returned by the function.

Example:  
Click the second item of EveryImageLocation(text:“Load”)

For this type of issue I would recommend that you send details to [eggplant.support@keysight.com](mailto:eggplant.support@keysight.com) and they will be glad to help.

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [January 25, 2022, 10:40am UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/9 "2022-01-25T10:40:49Z")

</div>

This should work as well `ImageFound(text:"LOAD", CaseSensitive:yes)`

---

<div class="post-metadata">

**Author:** ![pameelasmith](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/p/f19dbf/32.png) [@pameelasmith](https://forums.eggplantsoftware.com/u/pameelasmith)\
**Post date:** [August 20, 2022, 6:09pm UTC](https://forums.eggplantsoftware.com/t/imagefound-finding-text-with-asprostrophe/7715/10 "2022-08-20T18:09:43Z")

</div>

Can we get a screenshot of the graphic you are trying to find? I did a quick test in notepad and EPF found ‘LOAD’ button okay[.](http://topbestcrossbow.com/)
