I am trying to use Eggplant’s OCR to find a desired input text against a certain background color. This is because on the SUT I am testing on, there are many same word selections on the website and things tend to move around a lot so searchRectangles do not always provide the best search functionality.
I understand that you can use a dynamic searchRectangle to narrow search selections down, but I want to add additional search capability using background color as a parameter for OCR.
I could not find any documentation for OCR searching against a particular background color. For example, I was looking for something like
put EveryImageLocation(Text:“My Text”, Image:“Background Color”)
where this would search for text on the page which contained contain the inputted background color and then would return the coordinates of all known locations. Obviously, this line doesn’t work, but I was hoping for an in-built function that can help do this.
Are there any functions that can search text against a certain background color? If not, how can this be accomplished using existing built-in Eggplant functions?