Rawtext and Rawtextblock

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Jiemin
Posts: 4
Joined: Mon Oct 04, 2010 2:21 pm

Rawtext and Rawtextblock

Post by Jiemin » Wed Oct 20, 2010 10:01 am

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
Attachments
rawtext[32].rxsnp
Ranorex snapshot for a rawtext
(1.54 KiB) Downloaded 914 times
List2017.rxsnp
Ranorex snapshot for a list
(51.27 KiB) Downloaded 202 times

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

Re: Rawtext and Rawtextblock

Post by Support Team » Wed Oct 20, 2010 11:35 am

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

Jiemin
Posts: 4
Joined: Mon Oct 04, 2010 2:21 pm

Re: Rawtext and Rawtextblock

Post by Jiemin » Wed Oct 20, 2010 1:55 pm

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

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

Re: Rawtext and Rawtextblock

Post by Support Team » Thu Oct 21, 2010 12:33 pm

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