Forum Discussion
4 Replies
- Marsha_RModerator
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.
Can image based testing be used in script extensions? Also can OCR be used in script extensions?Yes, OCR and Regions are both included in this reference for script extensions.
- hinaContributor
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_RModerator
See if this archived thread helps at all:
Related Content
- 2 years ago