We recognize that it can be difficult to determine the exact font and size being used by different elements in the interface. We have supplied the attributes for a few commonly-used styles in the predefined text styles for the Mac and Windows platforms to help you get started.
As you discover the correct attributes for other interface elements, we would encourage you to post that information here on the forum for other users to benefit from. We intend to add more predefined styles in future releases of Eggplant to make this easier.
One approach that may help you discover the correct attributes is to capture an ordinary image of the text you want to match (using “Capture Image” from the Remote Screen toolbar) and select that image in the Images tab of the Suite so you can see it on screen.
Next, open the Text Image Sheet (by clicking the Text Image button on the Remote Screen toolbar). Then, with the Text Image Preview section open in the sheet, enter the text in the Text String field, and then try various fonts and sizes while visually comparing the generated preview image to the one you previously captured. It’s a bit of a hit-and-miss approach, but may be helpful if you already have a pretty good idea of which font it is.
A more systematic approach is to write a script that loops through all of the possible fonts, sizes, etc. for a given text string and looks for the generated image of each on the screen. We will post a sample script in the Examples forum soon to show how this can be done.