| || |
Regions.Find, newbeeTC question
Iím Completely new to TC and trying to compare a table in a webpage with a already recorded picture.
My problem is that one of the columns in the table contains date/time and that the time will change from run to run.
I have found out that i probably need to use the regions.Find function instead of the Regions.Compare, but I cant understand how I should do that and I have a hard time finding an code example.
My regions.Compare looks like this
if(!Regions.Compare("Joiner04_01_JJE_Not_set.bmp", Sys["Process"]("iexplore")["Window"]("IEFrame", "*")["Window"]("TabWindowClass", "*")["Window"]("Shell DocObject View")["Window"]("Internet Explorer_Server")["Page"]("http://localhost/")["document"]["frames"]["frame"]("framMain")["document"]["all"]["Item"](127)))
Log.Error("The regions are not identical.");
How do change this to make Regions.Find return a true if the picture is found on the screen somewhere?
Hope someone can help me.
Re: Regions.Find, newbeeTC question
We suggest that you use the Transparent parameter of the Regions.Compare method. Using this parameter, you will be able to specify areas (cells with time and date) within the images you compare that should not be used in the comparison. Please see the 'Regions.Compare' help topic for more information.
As for the Regions.Find method, we recommend that you see the 'Regions.Find' and 'Comparing and Finding Images' help topics to learn more about this feature and find sample scripts demonstrating how you can use the method.