Form visible is true, but not visible on screen

Ask general questions here.
riccardo
Posts: 30
Joined: Wed Apr 28, 2010 10:37 pm

Form visible is true, but not visible on screen

Post by riccardo » Tue Apr 19, 2011 10:30 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Tue Apr 19, 2011 12:39 pm

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
.
Image

riccardo
Posts: 30
Joined: Wed Apr 28, 2010 10:37 pm

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

Post by riccardo » Tue Apr 19, 2011 3:17 pm

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);
			
		}

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Wed Apr 20, 2011 7:30 am

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
.
Image