Windows 10 - Windows Security Pop Up
The recomendation did not work. I found this https://community.smartbear.com/t5/TestComplete-General-Discussions/Why-TestComplete-cannot-detect-objects-n-windows-security-popup/td-p/156886 with no resolution. Is this still a limitation of TestComplete and Windows 10 security pop up? I tried to spy but just as in the thread pasted here, all it sees is a credential dialog of sorts, and no ui elements/ objects within the dialog.
The login method doesnt work either.
Thanks.
I guess the point I'm trying to make is that, yes, you can do what you're asking... but it's not an "out of the box" functionality. For what you're asking, you're going to need to write some of your own code to save the files in order to update the baselines and then utilize those saved files in running your tests. So, I envision a function that would look something like this:
function imageComparison(testObject, filePath, fileName) { //Create a project variable called updateBaseline and make it boolean. //When you want to update your baselines, set it to true var pictureBaseline = Utils.Picture(); if (Project.Variables.updateBaseline) { testObject.Picture().SaveToFile(filePath + fileName); } else { pictureBaseline.LoadFromFile(filePath + fileName); pictureBaseline.Compare(testObject.Picture()) } }
So, instead of using the built in Regions.Compare or Regions.Check, you would use the above method. If the project variable is set to true, your baseline files will be updated... if it's set to false, you'll do the comparison.