SWT Canvas Objects

Class library usage, coding and language questions.
tingelcore
Posts: 10
Joined: Thu Jul 27, 2017 11:04 am

SWT Canvas Objects

Post by tingelcore » Thu Jul 27, 2017 11:08 am

Hello,

I have a problem with the Object Spy doesn't find any Objects within a SWT Canvas. There is a Topic on that from 2012 but it's locked and i didn't found a working solution for me in there.

Edit for more Information: On the Canvas there are Elements drawn on runtime. Like some dropdown options and you can create other objects which are shown on the canvas.

Is there a workaround that Objects within a SWT Canvas can be recognized?

Best Regards

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

Re: SWT Canvas Objects

Post by odklizec » Fri Jul 28, 2017 11:32 am

Hi,

I'm afraid, the answer is the same as in 2012. There is not an easy way to access the swt canvas elements. Basically, you will have (somehow) implement accessibility to swt canvas and its elements (inside AUT).
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

tingelcore
Posts: 10
Joined: Thu Jul 27, 2017 11:04 am

Re: SWT Canvas Objects

Post by tingelcore » Fri Jul 28, 2017 12:52 pm

Hi,
thanks for the quick reply. That is what I thought.