Image based records give compile error in user code

Ask general questions here.
rastek
Posts: 157
Joined: Wed Aug 06, 2014 12:00 pm

Image based records give compile error in user code

Post by rastek » Tue Feb 14, 2017 2:35 pm

I just copy some image based recording to user code and see that both image validation and imgae based mouse cliknig gives error when compiled, is there a known issue for that ?

Here is the error code I get when I try to compile
'ApplicationServerInstallWizar_Screenshot15_Options' is not declared. It may be inaccessible due to its protection level. (BC30451) - D:\Users\rastek\Documents\Ranorex\RanorexStudio Projects\asplatform\asplatform\Screen6.UserCode.vb:37,169

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3921
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Image based records give compile error in user code

Post by odklizec » Tue Feb 14, 2017 2:44 pm

Hi,

It fails because you most probably forgot to copy the Image options, as described here:
http://www.ranorex.com/forum/image-vali ... tml#p41188
Pavel Kudrys
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