We are not using Ranorex Studio in-house. Instead, we track elements with Spy, generate C# code and then work with repository in MS Visual Studo. I did, however, install Ranorex Studio trial to check what might be wrong.
Support Team wrote:I downloaded the web installer of your application and suddenly a message occurs "Please check you Internet connection". Is this software working on a Virtual PC ?
We are not aware of any issues between MS Virtual PC and XProtect Go. Please try to disable antivirus, firewall. Also make sure you have correctly configured network settings and stable connection and try again.
Ciege wrote: Since its Win 7 can you try disabling UAC
Sorry not to mention. Done already

Also, no firewalls and disabled antivirus..
We have tried doing the same thing on another machine, exactly as mine - same result. The strange thing is, both Spy and Studio are able to correctly trace the UI elements, makes screenshots with the elements highlighted and highlight elements after tracing. But when it comes to playing the recorded actions (no modifications made) or using the items in repository - they simply fail. Also, this is not an issue for other software products (both created by us and external applications, such as Notepad).
The following error is from Ranorex Studio, when trying to play the recording, which contains pressing on toolbar File -> Save:

- test run
- run.png (101.11 KiB) Viewed 283 times
and this is what I get when I'm trying to run a very simple code, which simply selects MenuItem in toolbar:
- Code: Select all
Ranorex.ElementNotFoundException was unhandled
Message=Failed to find item 'DriverRepository.MainWindow.MenuItemFile' within the specified timeout of 10s.
Source=Ranorex.Core
StackTrace:
at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException)
at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException)
at MyTestProject.DriverRepositoryFolders.MainWindowAppFolder.get_MenuItemFile() in C:\Users\ebi\Documents\projects\testRanorex\testRanorex\Repository.cs:line 148
at testRanorex.Program.Main(String[] args) in C:\Users\ebi\Documents\projects\testRanorex\testRanorex\Program.cs:line 15
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: Ranorex.ElementNotFoundException
Message=No element found for path 'element[@controlname='MainMenu']/menubar/menuitem[@accessiblename='File']' within 10s.
InnerException:
To reproduce:
Open Spy and XProtect Go. Create repository with tracking File button from toolbar. Save repository and export code.
Create VS C# Console project, add repository.cs to it. In Program.cs try selecting the item you traced, by referring to repository object.
I hope this helps. Looking forward to your ideas.
Elena