Ranorex form element coming as null when spying swing window
Posted: Wed Nov 02, 2016 10:21 am
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?
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?