I am a beginner in programming and i have an issue when i try to create a method which permits to wait for an image is loaded to do another action (a click for example).
This is the c# code i am using but its not working
Code: Select all
public void WaitForImageExists(){
Ranorex.unknown myElement = null;
string myPath = "dom/[1] ///div[@id~'panelUploadApplet' and visible='True']
if (Host.local.TryFindSingle (myPath, 30000, out myElement)
{
Validate.compareImage (repo.ExtranetWorkspace.SunAwtCanvas2Infos, SunAwtCanvas2_Screenshot1, SunAwtCanvas2_Screenshot1_Options);
}
}
Thank you in advance for your help.
Best regards,
MTO