Forum Discussion
Does the image based testing work in all resolutions?
It does, but the two images you are comparing have to be in the same resolution at the time of comparison. You can't do something like compare a tiny version of your logo with a large version of your logo.
Yes, OCR and Regions are both included in this reference for script extensions.
- hina3 years agoContributor
Hi,
Thanks for the quick reply Marsha. I have another question regarding OCR. So I have a code that works absolutely fine. Below is the code that works.
function Test1()
{
OCR["Recognize"](Sys["Process"]("AXISEL")["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("NavigationBar"))["BlockByText"]("Work Areas", spNearestToCenter)["Click"]();}
When I copy and paste this code in script extension, I get the error message: 'spNearestToCenter' is undefined.
My question is how can I use this code in script extension.
Thanks,
Hina
- Marsha_R3 years agoModerator
See if this archived thread helps at all:
- hina3 years agoContributor
Hi Marsha,
Thanks for the reply. That's not what the problem is. Let me rephrase, so the above code works when I run it without the script extension. But when I copy and paste the same code as it is in script extension, it gives the error: 'spNearestToCenter' is undefined.
I don't know how to use OCR in script extension. Can you guide me how would I use OCR in script extension or how would I pass spNearestToCenter as parameter so that script extension recognize it.
Thanks,
Hina
Related Content
- 2 years ago
- 4 years ago
Recent Discussions
- 3 hours ago
- 5 hours ago