I have a problem with the caching of attributes in the elements. I have the following method to wait for the "visible" attribute to become true.
public static bool EnsureVisible(Ranorex.Adapter element, int timeout = 30) { sw.Restart(); while (sw.Elapsed.Seconds < timeout) { if (element.Visible) { return true; } Delay.Seconds(1); } return false; }However it seems like if the element has visible=false the first time the element is accessed, it will stay this way even though it becomes visible=true in the GUI. I´m using the repository and have also tried to set all folders in the path to "Use Cash"=false but this didn’t make any difference. Is there some way that I can clear the cache or refresh the attributes in the element?
I use a Ranorex .Net Runtime Version 4.0.30319.18034 trial.
I have Windows 7 Proffesional with ServicePack 1 and .Net 4.5
BR Stefan