Page 1 of 1

Form visible is true, but not visible on screen

Posted: Tue Apr 19, 2011 10:30 am
by riccardo
I do have a Download Form which seems to be visible for Ranorex but does not appear not the screen (Document Save Form on Internet Explorer). Now Ranorex continues with the next step and of course fails. Any idea how I can really make sure the Download Form is visible AND appears on the screen.

Regards
Riccardo

Re: Form visible is true, but not visible on screen

Posted: Tue Apr 19, 2011 12:39 pm
by Support Team
Hi,

Please can you post us a Ranorex Snapshot of this special form?
How to create a Ranorex Snapshot
Have you checked if the elements on this form are visible too or only the form by it own?

Regards,
Peter
Ranorex Team

Re: Form visible is true, but not visible on screen

Posted: Tue Apr 19, 2011 3:17 pm
by riccardo
Hi Peter

I found a workaround:

I do check if the "Save" Button on the Form is "Enabled" as it does not work with visible. Once this is enabled I do click into the Form (to activate) and then press the Save Button. By pressing the Button without clicking somewhere in the form it would not work as the "click" only activates the form.

Workaround Code:

Code: Select all

		public void activateFormDownload()
		{	
			while (! repo.FormDateidownload.btn_speichern.Enabled)
			{
				Report.Info("Button not available");
				Delay.Seconds(2);
			}
			
			// Click into Form Dateidownload
			Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FormDateidownload' at UpperLeft.", repo.FormDateidownload.SelfInfo, new RecordItemIndex(-1));
			repo.FormDateidownload.Self.Click(Location.UpperLeft);
			
		}

Re: Form visible is true, but not visible on screen

Posted: Wed Apr 20, 2011 7:30 am
by Support Team
Hi,

Instead of your code you can try following method to activate the form
http://www.ranorex.com/Documentation/Ra ... tivate.htm

Regards,
Peter
Ranorex Team