Hello,
Good morning!
My team is going through difficult times fixing multiple windows issue as mentioned below.
In one machine Ranorex could recognize controls in multiple windows but others facing issues with the same(with same setup).Some times reinstalling would work. And problem shows up again. FYI: Both windows are from same location and same exe.
Thanks,
Bhargav
Issue with multiple windows
Re: Issue with multiple windows
Hi,
Unfortunately, without knowing more details about your problem (EXACT error messages) and application under test (at very least Ranorex snapshot...NOT screenshot!), there is nothing anyone here can do or suggest. Also, we need to know what Ranorex version do you use? Could you please provide more details about your problem?
Unfortunately, without knowing more details about your problem (EXACT error messages) and application under test (at very least Ranorex snapshot...NOT screenshot!), there is nothing anyone here can do or suggest. Also, we need to know what Ranorex version do you use? Could you please provide more details about your problem?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Issue with multiple windows
Ranorex xPath of problematic element(s):
/form[@controlname='TemplateViewer']/?/?/element[@win32parentwindowlevel='2' and @win32ownerwindowlevel='0']/container[@automationid='templateViewHost']/?/?/tabpagelist[@automationid='tcMainTabs']/?/?/container[@automationid='UserControl']/container
Ranorex version: 8.0.0
OS version : Windows 10 Enterprise , Version 1607 , Os Build 14393.2035
HW configuration: 24 GB RAM,I7 2.70 Processor
/form[@controlname='TemplateViewer']/?/?/element[@win32parentwindowlevel='2' and @win32ownerwindowlevel='0']/container[@automationid='templateViewHost']/?/?/tabpagelist[@automationid='tcMainTabs']/?/?/container[@automationid='UserControl']/container
Ranorex version: 8.0.0
OS version : Windows 10 Enterprise , Version 1607 , Os Build 14393.2035
HW configuration: 24 GB RAM,I7 2.70 Processor
Re: Issue with multiple windows
Consider I have opened a record in new window and waiting for the data to be loaded before proceeding.
Please follow the code snippet below. This I have written in a test step.
The problem is, On line 3 Automation crashes without executing catch block.
Please follow the code snippet below. This I have written in a test step.
The problem is, On line 3 Automation crashes without executing catch block.
Code: Select all
try
{
while(!xyzWPFUserControl.Enabled)
{}
}
catch(System.Exception e)
{
Report.Error(e.ToString());
}
Re: Issue with multiple windows
Hi,
Have you tried Ranorex.Exception instead of System.Exception? Additionally, are you pretty sure there should be issued an exception?
Have you tried Ranorex.Exception instead of System.Exception? Additionally, are you pretty sure there should be issued an exception?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration