I have the following piece of code that works:
I copy and paste this to a new line and change it to:
The text exists and is in the same text style as the text above it, however Eggplant can’t find it.
I’ve also discovered that on Mac, the text image generation does not like text on buttons. I’ve yet to get it to click a button with text on it (i’m guessing it’s because of the 3-d nature/shading of the buttons). I’m guessing I’m doing something wrong, but I’m not quite sure what.
Thanks for any suggestions.
You may want to compare your generated image with the actual image that is on the screen to determine if there are any differences between the two. The procedure for comparing images in Photoshop can be found here:
If you are trying to generate a text image for a target item with a slight pattern for the background you might want to experiment with a higher level of image tolerance.
Try not to specify too high of a value for this property otherwise, you will end up with false-positive image matches.
Designating a background color with a high level of tolerance however, may not always be enough for text images on patterned backgrounds. In these situations it is often better to capture the images manually as opposed to generating the image.
Similarly, the text image generation feature was not designed for the pulsing nature of buttons. Pulsing buttons too, should be captured manually.