Hello,
I can't find the rawtext and rawtextblock in Visual Studio C# 2008 Express. If I enter the path, for example "/form[@title='Verbindung']/tabpagelist/list[@controlid='2017']/rawtext[32]"(see the snapshots for the list and rawtext), in Ranorex Spy, the Spy will find it, but VS 2008 not. That is the same for rawtextblock.
What is the reason for that?
Thank you for your answer.
Greetings
Rawtext and Rawtextblock
Rawtext and Rawtextblock
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Rawtext and Rawtextblock
Hi,
Please could you post us the exact error message you get during execution of executable with VS2008. I tried to reproduce it, but it was working as expected. Please also check if the VS2008 Studio is started with administrator privileges, because the RawText Plug-In need this privileges to force the redraw of your application.
Regards,
Peter
Ranorex Team
Please could you post us the exact error message you get during execution of executable with VS2008. I tried to reproduce it, but it was working as expected. Please also check if the VS2008 Studio is started with administrator privileges, because the RawText Plug-In need this privileges to force the redraw of your application.
Regards,
Peter
Ranorex Team
Re: Rawtext and Rawtextblock
Hi,
hier is the error message:
Ranorex.ElementNotFoundException was unhandled
Message="No element found for path '/form[@title='Verbindung']/tabpagelist/list[@controlid='2017']/rawtext[32]' within 10s."
Source="Ranorex.Core"
StackTrace:
at Ranorex.Core.Element.FindSingle(RxPath path, Duration timeout)
at Ranorex.Core.Element.op_Implicit(String path)
at Ranorex.RawText.op_Implicit(String path)
at AccessExcel.Program.Main(String[] args) in C:\Dokumente und Einstellungen\zhang\Eigene Dateien\Visual Studio 2008\Projects\AccessExcel\AccessExcel\Program.cs:line 93
at System.AppDomain._nExecuteAssembly(Assembly 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)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
If I put the list with a rawtext to the fore, while the VS 2008 is searching for the rawtext, the VS 2008 can find it. If the rawtext is behind the VS 2008, VS 2008 can not find it. But if just the list is searched for, VS 2008 can find it, no matter whether the list is behind or in front of VS 2008.
Thank you very much.
Regards
Jiemin
hier is the error message:
Ranorex.ElementNotFoundException was unhandled
Message="No element found for path '/form[@title='Verbindung']/tabpagelist/list[@controlid='2017']/rawtext[32]' within 10s."
Source="Ranorex.Core"
StackTrace:
at Ranorex.Core.Element.FindSingle(RxPath path, Duration timeout)
at Ranorex.Core.Element.op_Implicit(String path)
at Ranorex.RawText.op_Implicit(String path)
at AccessExcel.Program.Main(String[] args) in C:\Dokumente und Einstellungen\zhang\Eigene Dateien\Visual Studio 2008\Projects\AccessExcel\AccessExcel\Program.cs:line 93
at System.AppDomain._nExecuteAssembly(Assembly 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)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
If I put the list with a rawtext to the fore, while the VS 2008 is searching for the rawtext, the VS 2008 can find it. If the rawtext is behind the VS 2008, VS 2008 can not find it. But if just the list is searched for, VS 2008 can find it, no matter whether the list is behind or in front of VS 2008.
Thank you very much.
Regards
Jiemin
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Rawtext and Rawtextblock
Hi,
If you use repository from Ranorex. Please add your absolute path to the repository and try it with the generated repository item. Maybe there is some difference in the search logic of Ranorex for the RawText capability. This is just a hunch, because I tried to reproduce it and it was working as expected.
Regards,
Peter
Ranorex Team
If you use repository from Ranorex. Please add your absolute path to the repository and try it with the generated repository item. Maybe there is some difference in the search logic of Ranorex for the RawText capability. This is just a hunch, because I tried to reproduce it and it was working as expected.
Regards,
Peter
Ranorex Team