However, when using the standard Validate.AttributeEquals, Ranorex has to find each element. When I am doing 20 separate validations on one page, this can take some time.
So, I am looking for a method to speed up a handful of validations in a particular container.
I have tried a couple things, but the most recent is to load a snapshot of the item. That way, the AUT only has to be scanned once.
However, once I have the snapshot, I am not entirely sure how to use it to validate the elements inside the snapshot quickly
Here is the simple code I use to grab the snapshot:
Code: Select all
MyRepository repo = MyRepository.Instance; ElementSnapshot snap = ElementSnapshot.Capture(repo.FrmMainCMW.PanelMain, false, false);
From here, how can I validate attributes of elements inside that snapshot? Or is there a better way to do multiple validations quickly?
For example, I would like to validate the window text of the 'editTotal_Cores' element.