I would like to use text image to find a text “Assignments” in an application in Linux. I have connected to Linux OS using VNC.
I do not know the actual font type and font size for the text, so i print screen in Mac and opened it with Paint in Windows (gray background). I found that the font type is “Microsoft Sans Serif” and the font size is 8.
After i try several times, I notice that the font size 8 cannot be used to detect any text in Linux. So, I set the preference as Picture 1.
But Eggplant seems cannot recognize whole word “Assignments”…
setoption currentTextPlatform, “LinuxRHE5”
Click (Text:“Assignments”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“Assignmen”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“ssignments”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“ssignment”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“ssignmen”, TextStyle:“ApplicationMenu”) – work
Click (Text:“Assignmen”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“nments”, TextStyle:“ApplicationMenu”) – work
I also try to set the font size to 11.5, but it does not help me.
Can you please give some advice about it? Thanks.