Page 1 of 1

Ranorex form element coming as null when spying swing window

Posted: Wed Nov 02, 2016 10:21 am
by nagendra5858
I have a popUp container, inside which I have a DefaultComboBoxModel. The model contains a JComboBox which has a list of Machine name.

When I just spy the JComboBox, it shows the xPath as /form[@title='MachinePage']/container[@type='JPanel']//combobox[@name='MachinePopup']

But when I spy a Machine from the ComboBox i get the xPath as /form//container/list[@name='ComboBox.list']/listitem[@text='Ferrari']

I dont get the form name here. Can anyone say why?

Re: Ranorex form element coming as null when spying swing window

Posted: Wed Nov 02, 2016 3:01 pm
by odklizec
Hi,

Please upload a Ranorex snapshot (not screenshot!) of the combobox in question. I'm not quite sure what you mean by "But when I spy a Machine from the ComboBox". So please upload the snapshot. It's the best way to share a problematic part of GUI with us, so we can examine it and suggest a solution. Thanks.