I recorded a script on tuesday, it worked great then and on wednesday. Today when I ran it, I kept getting, "Cannot read property 'Check' of undefined.
Here is the code snippet:
"Success = Regions.Reversed.Check(Regions.CreateRegionInfo(Aliases.browser.BrowserWindow.Chrome_Legacy_Window, 139, 319, 1727, 181, false), false, false, 10419, 255);"
Included is the error message and a list of the files showing the PNG in the regions directory....
This is very frustrating, I hope some one can tell me what is going wrong....If I redo the checkpoint wizard and make a new one it works again...
Solved! Go to Solution.
The file may be present in the hard drive, but the Regions store must contain it. (And I meant Reversed... typo). So check here and see if it's present.
The Reversed.png file is present... but that's not what is being called.
In your project, go to the Regions node in your project. Based upon what you have writen as code, I would expect there to be an item in the list of regions available named Reserved. IF that's missing, that's why you're getting the error... Reserved is undefined, therefore Check is an unkown identifier.
Basically... somewhere between today and yesterday, the Reversed object has been removed from the Regions collection.
Thanks Robert but,
"Based upon what you have writen as code, I would expect there to be an item in the list of regions available named Reserved. "
""Success = Regions.Reversed.Check(Regions.CreateRegionInfo(Aliases.browser.BrowserWindow.Chrome_Legacy_Window, 139, 319, 1727, 181, false), false, false, 10419, 255);"
Where do you see "Reserved?"
"Basically... the Reversed object has been removed", um no it is still there....
Lee
The file may be present in the hard drive, but the Regions store must contain it. (And I meant Reversed... typo). So check here and see if it's present.
Ah ha !!! I was looking in the regions directory with file explorer...when I used project explorer in the app, it was not there. I added it and it all seems to be ok now..
Thank you for your patience 🙂
Lee
No problem! Now, as to WHY it got removed from the Project Explorer... That I cannot speak to.
Subject | Author | Latest Post |
---|---|---|